X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Ftrace-ir%2Fevent.c;h=fe2c5805cb7ead5d39ce3dced85b12d81220ea8f;hb=d5b13b9b6a434797f856547be1ca6a59f70ba530;hp=b973798a819343eaa98c54bd801a551f4e2b76ad;hpb=0a83319b57c7f5d1f37a8c1af9a39daf6d503122;p=babeltrace.git diff --git a/src/lib/trace-ir/event.c b/src/lib/trace-ir/event.c index b973798a..fe2c5805 100644 --- a/src/lib/trace-ir/event.c +++ b/src/lib/trace-ir/event.c @@ -121,7 +121,7 @@ end: struct bt_event_class *bt_event_borrow_class(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->class; } @@ -133,7 +133,7 @@ const struct bt_event_class *bt_event_borrow_class_const( struct bt_stream *bt_event_borrow_stream(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->stream; } @@ -145,40 +145,40 @@ const struct bt_stream *bt_event_borrow_stream_const( struct bt_field *bt_event_borrow_common_context_field(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->common_context_field; } const struct bt_field *bt_event_borrow_common_context_field_const( const struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->common_context_field; } struct bt_field *bt_event_borrow_specific_context_field(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->specific_context_field; } const struct bt_field *bt_event_borrow_specific_context_field_const( const struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->specific_context_field; } struct bt_field *bt_event_borrow_payload_field(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->payload_field; } const struct bt_field *bt_event_borrow_payload_field_const( const struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->payload_field; } @@ -217,7 +217,7 @@ void bt_event_destroy(struct bt_event *event) struct bt_packet *bt_event_borrow_packet(struct bt_event *event) { - BT_ASSERT_PRE_DEV_NON_NULL(event, "Event"); + BT_ASSERT_PRE_DEV_EVENT_NON_NULL(event); return event->packet; }