X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Flib-logging.c;h=91db4a31e4cc43fc504c92243db310cff12e6feb;hp=33f9d2f5bd2d6d3a11bc7fe5112bac7069ff9059;hb=b70d57a123c4e4a208b988539a7eb8fceb2b63a7;hpb=ca02df0ad8ae9a1a3640956d91ca31059d0b203a diff --git a/src/lib/lib-logging.c b/src/lib/lib-logging.c index 33f9d2f5..91db4a31 100644 --- a/src/lib/lib-logging.c +++ b/src/lib/lib-logging.c @@ -41,6 +41,7 @@ #include "value.h" #include "integer-range-set.h" #include "object-pool.h" +#include "graph/interrupter.h" #include "graph/component-class.h" #include "graph/component-class-sink-colander.h" #include "graph/component-filter.h" @@ -807,6 +808,12 @@ static inline void format_clock_snapshot(char **buf_ch, bool extended, } } +static inline void format_interrupter(char **buf_ch, bool extended, + const char *prefix, const struct bt_interrupter *intr) +{ + BUF_APPEND(", %sis-set=%d", PRFIELD(intr->is_set)); +} + static inline void format_value(char **buf_ch, bool extended, const char *prefix, const struct bt_value *value) { @@ -1446,6 +1453,9 @@ static inline void handle_conversion_specifier_bt(void *priv_data, case 'g': format_graph(buf_ch, extended, prefix, obj); break; + case 'z': + format_interrupter(buf_ch, extended, prefix, obj); + break; case 'o': format_object_pool(buf_ch, extended, prefix, obj); break;