lib: assign a unique ID to each pre/postcond. and report it on failure
[babeltrace.git] / src / lib / trace-ir / packet.c
index 18ed8fede87d3552217424b8e42af893c14b7370..96cbae019e54d11dda7dd80c427d560b7538fa49 100644 (file)
@@ -204,7 +204,8 @@ struct bt_packet *bt_packet_create(const struct bt_stream *c_stream)
 
        BT_ASSERT_PRE_NO_ERROR();
        BT_ASSERT_PRE_STREAM_NON_NULL(stream);
-       BT_ASSERT_PRE(stream->class->supports_packets,
+       BT_ASSERT_PRE("stream-class-supports-packets",
+               stream->class->supports_packets,
                "Stream class does not support packets: %![sc-]+S",
                stream->class);
        packet = bt_object_pool_create_object(&stream->packet_pool);
This page took 0.024133 seconds and 4 git commands to generate.