Fix: report appropriate field in error message
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 May 2012 03:00:42 +0000 (23:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 May 2012 03:00:42 +0000 (23:00 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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.025704 seconds and 4 git commands to generate.