logger: don't sound like the DMA trace can wrap

In general the DMA trace runs until interrupted but there are cases
where it can exit "normally": when reading from a file or stdin, when
some error happens,....

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-05-05 18:18:27 +00:00 committed by Liam Girdwood
parent 1e64b7e83c
commit fb02c56649
1 changed files with 4 additions and 3 deletions

View File

@ -890,10 +890,11 @@ static int logger_read(void)
"Skipped %zu bytes after the last statement",
sizeof(uint32_t) * skipped_dwords);
/* maximum 4 arguments supported */
if (skipped_dwords < sizeof(dma_log) + 4 * sizeof(uint32_t))
if (!global_config->trace &&
/* maximum 4 arguments supported */
skipped_dwords < sizeof(dma_log) + 4 * sizeof(uint32_t))
fprintf(global_config->out_fd,
". Wrap possible, check the start of the output for later logs");
". Potential mailbox wrap, check the start of the output for later logs");
fprintf(global_config->out_fd, ".\n");