X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fplugins%2Futils%2Fcounter%2Fcounter.c;h=200b9aa752866a68ba96443df5f78f787de902fb;hb=91d8147391efdc4d42cc4e1c171a65c0372a008f;hp=37ddd0306edb95af3989621332b53ddb10db63d1;hpb=4e87f509dec8aed765d6b6b4c868be65b8580c37;p=babeltrace.git diff --git a/src/plugins/utils/counter/counter.c b/src/plugins/utils/counter/counter.c index 37ddd030..200b9aa7 100644 --- a/src/plugins/utils/counter/counter.c +++ b/src/plugins/utils/counter/counter.c @@ -24,7 +24,7 @@ #include "logging.h" #include -#include "common/babeltrace.h" +#include "common/macros.h" #include "common/common.h" #include "plugins/plugins-common.h" #include "common/assert.h" @@ -236,7 +236,7 @@ bt_self_component_status counter_consume( bt_self_component_sink_as_self_component(comp)); BT_ASSERT(counter); - if (unlikely(!counter->msg_iter)) { + if (G_UNLIKELY(!counter->msg_iter)) { try_print_last(counter); ret = BT_SELF_COMPONENT_STATUS_END; goto end;