From d641558ef008b31c9e657f3a7850a7f4fbf4dd2c Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Wed, 26 May 2021 02:58:02 +0000 Subject: [PATCH] logger: print the value of a negative DELTA when there is one Because why not. Signed-off-by: Marc Herbert --- tools/logger/convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/logger/convert.c b/tools/logger/convert.c index 8c87b98cc..c181b4b26 100644 --- a/tools/logger/convert.c +++ b/tools/logger/convert.c @@ -457,7 +457,8 @@ static void print_entry_params(const struct log_entry_header *dma_log, if (dma_log->timestamp < last_timestamp) { fprintf(out_fd, - "\n\t\t --- negative DELTA: wrap, IPC_TRACE, other? ---\n\n"); + "\n\t\t --- negative DELTA = %.3f us: wrap, IPC_TRACE, other? ---\n\n", + -to_usecs(last_timestamp - dma_log->timestamp)); entry_number = 1; }