diff --git a/src/system/kernel/debug/tracing.cpp b/src/system/kernel/debug/tracing.cpp index 2b178a8521..a7c424d6fe 100644 --- a/src/system/kernel/debug/tracing.cpp +++ b/src/system/kernel/debug/tracing.cpp @@ -1678,7 +1678,9 @@ tracing_find_caller_in_stack_trace(struct tracing_stack_trace* stackTrace, void tracing_print_stack_trace(struct tracing_stack_trace* stackTrace) { +#if ENABLE_TRACING print_stack_trace(stackTrace, kprintf); +#endif }