From: Mathieu Desnoyers Date: Fri, 4 May 2012 03:00:42 +0000 (-0400) Subject: Fix: report appropriate field in error message X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0fe3c2c90a40774cd286f2744450a58fe238dca3;p=deliverable%2Fbabeltrace.git 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 07966632e..1ba7e949d 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; }