trace: Trace initial message as error logs

Use tr_err to have this initial message also in error logs and assert
traces works well.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-08-21 10:12:17 +02:00 committed by Liam Girdwood
parent 837ad4b9e0
commit 67a0a6937c
1 changed files with 7 additions and 3 deletions

View File

@ -318,9 +318,13 @@ int dma_trace_enable(struct dma_trace_data *d)
if (err < 0)
goto out;
/* it should be the very first sent log for easily identification */
tr_info(&dt_tr, "FW ABI 0x%x DBG ABI 0x%x tag " SOF_GIT_TAG " src hash 0x%08x (ldc hash " META_QUOTE(SOF_SRC_HASH) ")",
SOF_ABI_VERSION, SOF_ABI_DBG_VERSION, SOF_SRC_HASH);
/*
* It should be the very first sent log for easily identification.
* Use tr_err to have this initial message also in error logs and assert
* traces works well.
*/
tr_err(&dt_tr, "FW ABI 0x%x DBG ABI 0x%x tag " SOF_GIT_TAG " src hash 0x%08x (ldc hash " META_QUOTE(SOF_SRC_HASH) ")",
SOF_ABI_VERSION, SOF_ABI_DBG_VERSION, SOF_SRC_HASH);
#if CONFIG_DMA_GW
/*