X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fpacket-context-field.c;h=9f648e24a221404caa37ed9dc70b745063841a70;hp=1530ef97873028a585706139c82291fce08e3988;hb=26fc5aedf;hpb=c2d9d9cf280189e77453e82e4979c307eef111e7 diff --git a/src/lib/trace-ir/packet-context-field.c b/src/lib/trace-ir/packet-context-field.c index 1530ef97..9f648e24 100644 --- a/src/lib/trace-ir/packet-context-field.c +++ b/src/lib/trace-ir/packet-context-field.c @@ -63,8 +63,8 @@ struct bt_packet_context_field *bt_packet_context_field_create( struct bt_field_wrapper *field_wrapper; BT_ASSERT_PRE_NON_NULL(stream_class, "Stream class"); - BT_ASSERT_PRE(stream_class->frozen, - "Stream class is not part of a trace class: %!+S", + BT_ASSERT_PRE(stream_class->supports_packets, + "Stream class does not support packets: %![sc-]+S", stream_class); BT_ASSERT_PRE(stream_class->packet_context_fc, "Stream class has no packet context field class: %!+S", @@ -73,7 +73,8 @@ struct bt_packet_context_field *bt_packet_context_field_create( &stream_class->packet_context_field_pool, (void *) stream_class->packet_context_fc); if (!field_wrapper) { - BT_LIB_LOGE("Cannot allocate one packet context field from stream class: " + BT_LIB_LOGE_APPEND_CAUSE( + "Cannot allocate one packet context field from stream class: " "%![sc-]+S", stream_class); goto error; }