projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git]
/
src
/
plugins
/
utils
/
counter
/
counter.c
diff --git
a/src/plugins/utils/counter/counter.c
b/src/plugins/utils/counter/counter.c
index 82d1b907e45b2d49ea43bf92e23d1a44ebb35cca..cff0d577d2ccdda2f3e1682b428716d194042cd3 100644
(file)
--- a/
src/plugins/utils/counter/counter.c
+++ b/
src/plugins/utils/counter/counter.c
@@
-30,6
+30,7
@@
#include "common/common.h"
#include "common/assert.h"
#include <inttypes.h>
#include "common/common.h"
#include "common/assert.h"
#include <inttypes.h>
+#include <stdbool.h>
#include <stdint.h>
#include "plugins/common/param-validation/param-validation.h"
#include <stdint.h>
#include "plugins/common/param-validation/param-validation.h"
@@
-113,6
+114,7
@@
void try_print_last(struct counter *counter)
}
}
}
}
+static
void destroy_private_counter_data(struct counter *counter)
{
if (counter) {
void destroy_private_counter_data(struct counter *counter)
{
if (counter) {
@@
-256,7
+258,7
@@
bt_component_class_sink_consume_method_status counter_consume(
counter = bt_self_component_get_data(
bt_self_component_sink_as_self_component(comp));
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);
if (G_UNLIKELY(!counter->msg_iter)) {
try_print_last(counter);
@@
-280,7
+282,7
@@
bt_component_class_sink_consume_method_status counter_consume(
for (i = 0; i < msg_count; i++) {
const bt_message *msg = msgs[i];
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++;
switch (bt_message_get_type(msg)) {
case BT_MESSAGE_TYPE_EVENT:
counter->count.event++;
This page took
0.024175 seconds
and
4
git commands to generate.