Fix: Set the stream class' id in the packet header
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Jun 2014 21:29:36 +0000 (17:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 27 Jun 2014 20:10:44 +0000 (16:10 -0400)
The stream id was used in the packet header whereas the
stream class' id should be used.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/writer/writer.c

index 13142a12ca1e534fa0b0e3100c77a0839eec9e79..d1ef5dc45d46be4359e39147a874b6ce5ec6a9f8 100644 (file)
@@ -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 */
This page took 0.025638 seconds and 4 git commands to generate.