From 67a0a6937c87e3c12490ed1a6587b258f1ed510f Mon Sep 17 00:00:00 2001 From: Karol Trzcinski Date: Fri, 21 Aug 2020 10:12:17 +0200 Subject: [PATCH] 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 --- src/trace/dma-trace.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/trace/dma-trace.c b/src/trace/dma-trace.c index be39f5262..5529f0414 100644 --- a/src/trace/dma-trace.c +++ b/src/trace/dma-trace.c @@ -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 /*