From: Jérémie Galarneau Date: Tue, 10 Jun 2014 21:29:36 +0000 (-0400) Subject: Fix: Set the stream class' id in the packet header X-Git-Tag: v2.0.0-pre1~1526 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=c13c7ca07e124477b059a69d75835afe98d4e634 Fix: Set the stream class' id in the packet header The stream id was used in the packet header whereas the stream class' id should be used. Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/writer/writer.c b/formats/ctf/writer/writer.c index 13142a12..d1ef5dc4 100644 --- a/formats/ctf/writer/writer.c +++ b/formats/ctf/writer/writer.c @@ -724,7 +724,7 @@ void stream_flush_cb(struct bt_ctf_stream *stream, struct bt_ctf_writer *writer) stream_id = bt_ctf_field_structure_get_field( writer->trace_packet_header, "stream_id"); - bt_ctf_field_unsigned_integer_set_value(stream_id, stream->id); + bt_ctf_field_unsigned_integer_set_value(stream_id, stream->stream_class->id); bt_ctf_field_put(stream_id); /* Write the trace_packet_header */