mirror of https://github.com/thesofproject/sof.git
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:
parent
c8ae78ab0e
commit
a25cf0f1ba
|
@ -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__); \
|
||||
|
|
Loading…
Reference in New Issue