zephyr: trace: use zephyr utilities when enabled

Use the Zephyr sys/printk.h when Zephyr RTOS is used.

Suggested-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
This commit is contained in:
Iuliana Prodan 2021-05-20 18:43:29 +03:00 committed by Liam Girdwood
parent c32a0e032f
commit 8357dcf793
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_H_
#include <logging/log.h>
#ifdef __ZEPHYR__
#include <sys/printk.h>
#endif
/* Level of SOF trace on Zephyr */
#define SOF_ZEPHYR_TRACE_LEVEL LOG_LEVEL_INF