lib: strictly type function return status enumerations
[babeltrace.git] / src / lib / graph / message / packet.c
index 6bce712996b1f27910ca779e0d4800a6505bf56c..13882395d610bf7f9a9c4e15052ccfc21ea08e9b 100644 (file)
  * SOFTWARE.
  */
 
-#define BT_LOG_TAG "MSG-PACKET"
-#include "lib/lib-logging.h"
+#define BT_LOG_TAG "LIB/MSG-PACKET"
+#include "lib/logging.h"
 
+#include "lib/assert-pre.h"
+#include "lib/assert-post.h"
 #include "compat/compiler.h"
 #include <babeltrace2/trace-ir/packet.h>
 #include "lib/trace-ir/packet.h"
@@ -37,7 +39,6 @@
 #include <babeltrace2/graph/message-packet-beginning.h>
 #include <babeltrace2/graph/message-packet-end.h>
 #include "common/assert.h"
-#include "lib/assert-pre.h"
 #include "lib/object.h"
 #include <inttypes.h>
 
@@ -246,7 +247,7 @@ void bt_message_packet_beginning_recycle(struct bt_message *msg)
 {
        BT_ASSERT(msg);
 
-       if (unlikely(!msg->graph)) {
+       if (G_UNLIKELY(!msg->graph)) {
                bt_message_packet_destroy(msg);
                return;
        }
@@ -259,7 +260,7 @@ void bt_message_packet_end_recycle(struct bt_message *msg)
 {
        BT_ASSERT(msg);
 
-       if (unlikely(!msg->graph)) {
+       if (G_UNLIKELY(!msg->graph)) {
                bt_message_packet_destroy(msg);
                return;
        }
This page took 0.024944 seconds and 4 git commands to generate.