X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=lib%2Ftrace-ir%2Fevent-class.c;h=3df6320bf23746105f9719de4c82fc73aa8f1182;hb=864cad701843d041ae0c9113fc2c20f9b3e1835d;hp=e47c77f8548a485d60c3629b868d96ed5f6851e1;hpb=5cd6d0e5fa67c2bdd21dc153313618260595d7bc;p=babeltrace.git diff --git a/lib/trace-ir/event-class.c b/lib/trace-ir/event-class.c index e47c77f8..3df6320b 100644 --- a/lib/trace-ir/event-class.c +++ b/lib/trace-ir/event-class.c @@ -284,8 +284,8 @@ int bt_event_class_set_specific_context_field_class( BT_ASSERT_PRE_NON_NULL(event_class, "Event class"); BT_ASSERT_PRE_NON_NULL(field_class, "Field class"); BT_ASSERT_PRE_EVENT_CLASS_HOT(event_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, "Specific context field classe is not a structure field classe: " "%!+F", field_class); stream_class = bt_event_class_borrow_stream_class_inline( @@ -338,8 +338,8 @@ int bt_event_class_set_payload_field_class(struct bt_event_class *event_class, BT_ASSERT_PRE_NON_NULL(event_class, "Event class"); BT_ASSERT_PRE_NON_NULL(field_class, "Field class"); BT_ASSERT_PRE_EVENT_CLASS_HOT(event_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, "Payload field classe is not a structure field classe: %!+F", field_class); stream_class = bt_event_class_borrow_stream_class_inline(