zephyr: fix breakage after a recent logging extention

Commit fee7d9c660 ("trace: Introduce adaptive
rate-limiting/suppression of repeated messages") broke Zephyr build.
Add the missing parameter.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2020-11-27 20:10:46 +01:00 committed by Liam Girdwood
parent c8ae78ab0e
commit a25cf0f1ba
1 changed files with 2 additions and 2 deletions

View File

@ -30,14 +30,14 @@ uint64_t platform_timer_get(struct timer *timer);
#undef _log_message
#if USE_PRINTK
#define _log_message(atomic, level, comp_class, ctx, id1, id2, format, ...) \
#define _log_message(log_func, atomic, level, comp_class, ctx, id1, id2, format, ...) \
do { \
if ((level) <= SOF_ZEPHYR_TRACE_LEVEL) \
printk("%llu: " format "\n", platform_timer_get(NULL), \
##__VA_ARGS__); \
} while (0)
#else
#define _log_message(atomic, level, comp_class, ctx, id1, id2, format, ...) \
#define _log_message(log_func, atomic, level, comp_class, ctx, id1, id2, format, ...) \
do { \
Z_LOG(level, "%u: " format, (uint32_t)platform_timer_get(NULL), \
##__VA_ARGS__); \