From 8fc0367b2f1a2bd5e9ad49d0639e5e3574edb8c9 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 19 Feb 2019 09:20:53 -0500 Subject: [PATCH] lib-logging.c: log event, packet beginnin/end message clock snapshot Signed-off-by: Philippe Proulx --- lib/lib-logging.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: -- 2.34.1