X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Futils%2Fcounter%2Fcounter.c;h=18ec60559eaae09285ad058dac44890f45b3cde4;hp=82d1b907e45b2d49ea43bf92e23d1a44ebb35cca;hb=ec4a33549ae0f01a603caa22db78bd356e3ab81b;hpb=109730d9c5fe6172f409fb5b3fb96d48f9adf786 diff --git a/src/plugins/utils/counter/counter.c b/src/plugins/utils/counter/counter.c index 82d1b907..18ec6055 100644 --- a/src/plugins/utils/counter/counter.c +++ b/src/plugins/utils/counter/counter.c @@ -256,7 +256,7 @@ bt_component_class_sink_consume_method_status counter_consume( counter = bt_self_component_get_data( bt_self_component_sink_as_self_component(comp)); - BT_ASSERT(counter); + BT_ASSERT_DBG(counter); if (G_UNLIKELY(!counter->msg_iter)) { try_print_last(counter); @@ -280,7 +280,7 @@ bt_component_class_sink_consume_method_status counter_consume( for (i = 0; i < msg_count; i++) { const bt_message *msg = msgs[i]; - BT_ASSERT(msg); + BT_ASSERT_DBG(msg); switch (bt_message_get_type(msg)) { case BT_MESSAGE_TYPE_EVENT: counter->count.event++;