lib: introduce bt_message_iterator_class
[babeltrace.git] / src / lib / lib-logging.c
index 242f88d645fdaa20e8408ba6004c22f77debf8c4..02f18ed5a9d94e500f522dbe22492af10160f72f 100644 (file)
@@ -1198,6 +1198,13 @@ static inline void format_graph(char **buf_ch, bool extended,
                &graph->packet_end_msg_pool);
 }
 
+static inline void format_message_iterator_class(char **buf_ch,
+               bool extended, const char *prefix,
+               const struct bt_message_iterator_class *iterator_class)
+{
+       /* Empty, the address is automatically printed. */
+}
+
 static inline void format_message_iterator(char **buf_ch,
                bool extended, const char *prefix,
                const struct bt_message_iterator *iterator)
@@ -1447,6 +1454,9 @@ static inline void handle_conversion_specifier_bt(void *priv_data,
        case 'n':
                format_message(buf_ch, extended, prefix, obj);
                break;
+       case 'I':
+               format_message_iterator_class(buf_ch, extended, prefix, obj);
+               break;
        case 'i':
                format_message_iterator(buf_ch, extended, prefix, obj);
                break;
This page took 0.023372 seconds and 4 git commands to generate.