logger: print the value of a negative DELTA when there is one

Because why not.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-05-26 02:58:02 +00:00 committed by Liam Girdwood
parent be7bed9ddf
commit d641558ef0
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}