From: Mathieu Desnoyers Date: Wed, 20 Mar 2013 23:21:23 +0000 (-0400) Subject: Add verbosity to stream id error message X-Git-Tag: v1.1.0~7 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=3257b190d3eb1bfce13f3802d1dbb314d11c714f Add verbosity to stream id error message Signed-off-by: Mathieu Desnoyers --- 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) {