From 8357dcf793f4d9937aff78773d5b84d1543ce8da Mon Sep 17 00:00:00 2001 From: Iuliana Prodan Date: Thu, 20 May 2021 18:43:29 +0300 Subject: [PATCH] zephyr: trace: use zephyr utilities when enabled Use the Zephyr sys/printk.h when Zephyr RTOS is used. Suggested-by: Guennadi Liakhovetski Signed-off-by: Iuliana Prodan --- zephyr/include/sof/trace/trace.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zephyr/include/sof/trace/trace.h b/zephyr/include/sof/trace/trace.h index 3a53ea275..ccd34ffa4 100644 --- a/zephyr/include/sof/trace/trace.h +++ b/zephyr/include/sof/trace/trace.h @@ -9,6 +9,10 @@ #ifndef ZEPHYR_INCLUDE_LOGGING_LOG_H_ #include +#ifdef __ZEPHYR__ +#include +#endif + /* Level of SOF trace on Zephyr */ #define SOF_ZEPHYR_TRACE_LEVEL LOG_LEVEL_INF