X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fmessage%2Fmessage.h;h=1df9c5204c41d5a6187ad6fef13ab2f9ba96634a;hb=870631a2db01676b476dbee615aade0a22926bcd;hp=88924995b3c7f6d3e16d5251efdef932cf4bb391;hpb=3cd4c495b8c065ababc249f66d460c4a707d415a;p=babeltrace.git diff --git a/src/lib/graph/message/message.h b/src/lib/graph/message/message.h index 88924995..1df9c520 100644 --- a/src/lib/graph/message/message.h +++ b/src/lib/graph/message/message.h @@ -24,6 +24,11 @@ * SOFTWARE. */ +/* Protection: this file uses BT_LIB_LOG*() macros directly */ +#ifndef BT_LIB_LOG_SUPPORTED +# error Please include "lib/logging.h" before including this file. +#endif + #include "common/macros.h" #include "lib/object.h" #include "common/assert.h" @@ -79,7 +84,8 @@ struct bt_message *bt_message_create_from_pool( struct bt_message *msg = bt_object_pool_create_object(pool); if (G_UNLIKELY(!msg)) { - BT_LIB_LOGE("Cannot allocate one message from message pool: " + BT_LIB_LOGE_APPEND_CAUSE( + "Cannot allocate one message from message pool: " "%![pool-]+o, %![graph-]+g", pool, graph); goto error; }