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-Url: http://drtracing.org/?a=commitdiff_plain;h=c13c7ca07e124477b059a69d75835afe98d4e634;p=deliverable%2Fbabeltrace.git 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 13142a12c..d1ef5dc45 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 */