X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=lib%2Ftrace-ir%2Fstream-class.c;h=91255fc6a4efce93d928b2bdd8eaee505760254e;hb=864cad701843d041ae0c9113fc2c20f9b3e1835d;hp=7a0963755357fdb0dddb91f5f721285c0eb35fea;hpb=5cd6d0e5fa67c2bdd21dc153313618260595d7bc;p=babeltrace.git diff --git a/lib/trace-ir/stream-class.c b/lib/trace-ir/stream-class.c index 7a096375..91255fc6 100644 --- a/lib/trace-ir/stream-class.c +++ b/lib/trace-ir/stream-class.c @@ -291,8 +291,8 @@ int bt_stream_class_set_packet_context_field_class( BT_ASSERT_PRE_NON_NULL(stream_class, "Stream class"); BT_ASSERT_PRE_NON_NULL(field_class, "Field class"); BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class); - BT_ASSERT_PRE(bt_field_class_get_id(field_class) == - BT_FIELD_CLASS_ID_STRUCTURE, + BT_ASSERT_PRE(bt_field_class_get_type(field_class) == + BT_FIELD_CLASS_TYPE_STRUCTURE, "Packet context field classe is not a structure field classe: %!+F", field_class); resolve_ctx.packet_header = @@ -337,8 +337,8 @@ int bt_stream_class_set_event_header_field_class( BT_ASSERT_PRE_NON_NULL(stream_class, "Stream class"); BT_ASSERT_PRE_NON_NULL(field_class, "Field class"); BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class); - BT_ASSERT_PRE(bt_field_class_get_id(field_class) == - BT_FIELD_CLASS_ID_STRUCTURE, + BT_ASSERT_PRE(bt_field_class_get_type(field_class) == + BT_FIELD_CLASS_TYPE_STRUCTURE, "Event header field classe is not a structure field classe: %!+F", field_class); resolve_ctx.packet_header = @@ -384,8 +384,8 @@ int bt_stream_class_set_event_common_context_field_class( BT_ASSERT_PRE_NON_NULL(stream_class, "Stream class"); BT_ASSERT_PRE_NON_NULL(field_class, "Field class"); BT_ASSERT_PRE_STREAM_CLASS_HOT(stream_class); - BT_ASSERT_PRE(bt_field_class_get_id(field_class) == - BT_FIELD_CLASS_ID_STRUCTURE, + BT_ASSERT_PRE(bt_field_class_get_type(field_class) == + BT_FIELD_CLASS_TYPE_STRUCTURE, "Event common context field classe is not a structure field classe: %!+F", field_class); resolve_ctx.packet_header =