* SOFTWARE.
*/
-#define BT_LOG_TAG "MSG-EVENT"
-#include "lib/lib-logging.h"
+#define BT_LOG_TAG "LIB/MSG-EVENT"
+#include "lib/logging.h"
#include "common/assert.h"
#include "lib/assert-pre.h"
+#include "lib/assert-post.h"
#include "compat/compiler.h"
#include "lib/object.h"
#include <babeltrace2/trace-ir/event.h>
event_class, stream_class, with_cs, raw_value);
BT_LIB_LOGD("Creating event message object: %![ec-]+E", event_class);
event = bt_event_create(event_class, packet);
- if (unlikely(!event)) {
+ if (G_UNLIKELY(!event)) {
BT_LIB_LOGE("Cannot create event from event class: "
"%![ec-]+E", event_class);
goto error;
*/
message = (void *) bt_message_create_from_pool(
&msg_iter->graph->event_msg_pool, msg_iter->graph);
- if (unlikely(!message)) {
+ if (G_UNLIKELY(!message)) {
/* bt_message_create_from_pool() logs errors */
goto error;
}
BT_ASSERT(event_msg);
- if (unlikely(!msg->graph)) {
+ if (G_UNLIKELY(!msg->graph)) {
bt_message_event_destroy(msg);
return;
}