lib: use BT_LIB_LOG*_APPEND_CAUSE() where appropriate
[babeltrace.git] / src / lib / trace-ir / event.h
index e1d3e441b639964bb44f7eb1ddd9dc452671573f..002278ce88e1bb090e2e3e01ae6d23f9166f7b18 100644 (file)
@@ -25,8 +25,8 @@
  */
 
 /* Protection: this file uses BT_LIB_LOG*() macros directly */
-#ifndef BABELTRACE_LIB_LOGGING_INTERNAL_H
-# error Please include "lib/lib-logging.h" before including this file.
+#ifndef BT_LIB_LOG_SUPPORTED
+# error Please include "lib/logging.h" before including this file.
 #endif
 
 #include "lib/assert-pre.h"
@@ -187,7 +187,8 @@ struct bt_event *bt_event_create(struct bt_event_class *event_class,
        BT_ASSERT(event_class);
        event = bt_object_pool_create_object(&event_class->event_pool);
        if (G_UNLIKELY(!event)) {
-               BT_LIB_LOGE("Cannot allocate one event from event class's event pool: "
+               BT_LIB_LOGE_APPEND_CAUSE(
+                       "Cannot allocate one event from event class's event pool: "
                        "%![ec-]+E", event_class);
                goto end;
        }
This page took 0.025175 seconds and 4 git commands to generate.