From 0fe3c2c90a40774cd286f2744450a58fe238dca3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 3 May 2012 23:00:42 -0400 Subject: [PATCH] Fix: report appropriate field in error message Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1