From 3257b190d3eb1bfce13f3802d1dbb314d11c714f Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 20 Mar 2013 19:21:23 -0400 Subject: [PATCH] Add verbosity to stream id error message Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 5a514957..7c1ef735 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1372,7 +1372,9 @@ int create_stream_packet_index(struct ctf_trace *td, } if (!first_packet && file_stream->parent.stream_id != stream_id) { - fprintf(stderr, "[error] Stream ID is changing within a stream.\n"); + fprintf(stderr, "[error] Stream ID is changing within a stream: expecting %" PRIu64 ", but packet has %" PRIu64 "\n", + stream_id, + file_stream->parent.stream_id); return -EINVAL; } if (first_packet) { -- 2.34.1