lib: make BT_ASSERT_{PRE,POST}() always on; add BT_ASSERT_{PRE,POST}_DEV()
[babeltrace.git] / src / lib / graph / message / message.c
index 0a65b3be471cfce9fbdb99acc71e963ca09e631b..5d1d8139b41eb7afad891809949b3c174a7afb1b 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "MSG"
-#include "lib/lib-logging.h"
+#define BT_LOG_TAG "LIB/MSG"
+#include "lib/logging.h"
 
 #include "common/assert.h"
 #include "lib/assert-pre.h"
+#include "lib/assert-post.h"
 #include <babeltrace2/graph/message-const.h>
 #include "lib/graph/message/message.h"
 #include "lib/graph/graph.h"
@@ -49,7 +50,7 @@ void bt_message_init(struct bt_message *message,
 enum bt_message_type bt_message_get_type(
                const struct bt_message *message)
 {
-       BT_ASSERT_PRE_NON_NULL(message, "Message");
+       BT_ASSERT_PRE_DEV_NON_NULL(message, "Message");
        return message->type;
 }
 
This page took 0.023559 seconds and 4 git commands to generate.