X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fmessage%2Fmessage.h;h=ec7d2a6ca695ed59d48a2641bf4c579582d1f6b3;hb=43c59509042845f8d42c3e99ec74d45fa2dc0908;hp=75515ef8f41ffc224033fde627bd59ffc44eb0a7;hpb=bdb288b3e94e412a33c8647d44f6cfac66ca0665;p=babeltrace.git diff --git a/src/lib/graph/message/message.h b/src/lib/graph/message/message.h index 75515ef8..ec7d2a6c 100644 --- a/src/lib/graph/message/message.h +++ b/src/lib/graph/message/message.h @@ -33,7 +33,7 @@ #include "lib/object.h" #include "common/assert.h" #include -#include +#include #include #include "lib/object-pool.h" #include @@ -82,7 +82,7 @@ void bt_message_init(struct bt_message *message, static inline void bt_message_reset(struct bt_message *message) { - BT_ASSERT(message); + BT_ASSERT_DBG(message); #ifdef BT_DEV_MODE message->frozen = BT_FALSE; @@ -134,19 +134,19 @@ const char *bt_message_type_string(enum bt_message_type type) { switch (type) { case BT_MESSAGE_TYPE_EVENT: - return "BT_MESSAGE_TYPE_EVENT"; + return "EVENT"; case BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY: - return "BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY"; + return "MESSAGE_ITERATOR_INACTIVITY"; case BT_MESSAGE_TYPE_STREAM_BEGINNING: - return "BT_MESSAGE_TYPE_STREAM_BEGINNING"; + return "STREAM_BEGINNING"; case BT_MESSAGE_TYPE_STREAM_END: - return "BT_MESSAGE_TYPE_STREAM_END"; + return "STREAM_END"; case BT_MESSAGE_TYPE_PACKET_BEGINNING: - return "BT_MESSAGE_TYPE_PACKET_BEGINNING"; + return "PACKET_BEGINNING"; case BT_MESSAGE_TYPE_PACKET_END: - return "BT_MESSAGE_TYPE_PACKET_END"; + return "PACKET_END"; case BT_MESSAGE_TYPE_DISCARDED_EVENTS: - return "BT_MESSAGE_TYPE_DISCARDED_EVENTS"; + return "DISCARDED_EVENTS"; default: return "(unknown)"; }