tracing: Fix checks of Kconfig options
The compiler was generating errors of the form error: "CONFIG_TRACING" is not defined, evaluates to 0 [-Werror=undef] when -Wundef is used and the config option was turned off. Change check to ifdef/ifndef. Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
63e784ca8c
commit
e8e5086eed
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
#define SYS_TRACE_ID_SEMA_GIVE (5u + SYS_TRACE_ID_OFFSET)
|
||||
#define SYS_TRACE_ID_SEMA_TAKE (6u + SYS_TRACE_ID_OFFSET)
|
||||
|
||||
#if CONFIG_TRACING
|
||||
#ifdef CONFIG_TRACING
|
||||
void z_sys_trace_idle(void);
|
||||
void z_sys_trace_isr_enter(void);
|
||||
void z_sys_trace_isr_exit(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue