if ((packet_index.packet_size >> LOG2_CHAR_BIT) == 0) {
fprintf(stderr, "[error] Invalid CTF stream: packet size needs to be at least one byte\n");
return -EINVAL;
if ((packet_index.packet_size >> LOG2_CHAR_BIT) == 0) {
fprintf(stderr, "[error] Invalid CTF stream: packet size needs to be at least one byte\n");
return -EINVAL;