From: Philippe Proulx Date: Tue, 19 Feb 2019 14:20:53 +0000 (-0500) Subject: lib-logging.c: log event, packet beginnin/end message clock snapshot X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=8fc0367b2f1a2bd5e9ad49d0639e5e3574edb8c9 lib-logging.c: log event, packet beginnin/end message clock snapshot Signed-off-by: Philippe Proulx --- diff --git a/lib/lib-logging.c b/lib/lib-logging.c index ecf217ff..a71bbefc 100644 --- a/lib/lib-logging.c +++ b/lib/lib-logging.c @@ -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: