From 45cbd8143649b2fc1a82b9d153eaf52073f641dd Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 1 Nov 2011 22:49:32 +0000 Subject: [PATCH] Fix build with tracing disabled. Since capture_tracing_stack_trace() doesn't return a stack trace when tracing is disabled we don't really need to be able to print one either. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43088 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/debug/tracing.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 }