mirror of https://github.com/thesofproject/sof.git
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:
parent
1e64b7e83c
commit
fb02c56649
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue