lib-logging.c: log event, packet beginnin/end message clock snapshot
[babeltrace.git] / lib / lib-logging.c
index ecf217ff1bc119403fd313678a103f69ccc08004..a71bbefc42a1dcacd51700ac66b157d78e04d4e3 100644 (file)
@@ -878,6 +878,12 @@ static inline void format_message(char **buf_ch, bool extended,
                                msg_event->event);
                }
 
+               if (msg_event->default_cs) {
+                       SET_TMP_PREFIX("default-cs-");
+                       format_clock_snapshot(buf_ch, true, tmp_prefix,
+                               msg_event->default_cs);
+               }
+
                break;
        }
        case BT_MESSAGE_TYPE_STREAM_BEGINNING:
@@ -928,6 +934,12 @@ static inline void format_message(char **buf_ch, bool extended,
                                msg_packet->packet);
                }
 
+               if (msg_packet->default_cs) {
+                       SET_TMP_PREFIX("default-cs-");
+                       format_clock_snapshot(buf_ch, true, tmp_prefix,
+                               msg_packet->default_cs);
+               }
+
                break;
        }
        case BT_MESSAGE_TYPE_DISCARDED_EVENTS:
This page took 0.02361 seconds and 4 git commands to generate.