From: Mathieu Desnoyers Date: Fri, 4 May 2012 03:00:42 +0000 (-0400) Subject: Fix: report appropriate field in error message X-Git-Tag: v1.0.0-rc3~2 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=0fe3c2c90a40774cd286f2744450a58fe238dca3 Fix: report appropriate field in error message Signed-off-by: Mathieu Desnoyers --- diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 07966632..1ba7e949 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -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; }