Fix: report appropriate field in error message
[babeltrace.git] / formats / ctf / ctf.c
index 07966632e82caa99139f20458faf7f3d99f87449..1ba7e949d8fabfcf3263e041f2608cca5bc6337d 100644 (file)
@@ -1321,7 +1321,7 @@ int create_stream_packet_index(struct ctf_trace *td,
 
                if (packet_index.packet_size > ((uint64_t)filestats.st_size - packet_index.offset) * CHAR_BIT) {
                        fprintf(stderr, "[error] Packet size (%" PRIu64 " bits) is larger than remaining file size (%" PRIu64 " bits).\n",
-                               packet_index.content_size, ((uint64_t)filestats.st_size - packet_index.offset) * CHAR_BIT);
+                               packet_index.packet_size, ((uint64_t)filestats.st_size - packet_index.offset) * CHAR_BIT);
                        return -EINVAL;
                }
 
This page took 0.022507 seconds and 4 git commands to generate.