Add verbosity to stream id error message
[babeltrace.git] / formats / ctf / ctf.c
index 5a5149572f76fd3cf2210766700a98a28575e482..7c1ef73535a199439dda21ae0f875da562932bc0 100644 (file)
@@ -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) {
This page took 0.023718 seconds and 4 git commands to generate.