From 8b9bb054f46a2500dfc4216dca18096da737debc Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 23 Aug 2015 13:19:12 +0200 Subject: [PATCH] libroot_debug: Replace two more uses of printf in guarded heap. Use the internal print_stdout() instead as done when printing the stack traces. --- src/system/libroot/posix/malloc_debug/guarded_heap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp index 6c30a12485..3a552bd5af 100644 --- a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp +++ b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp @@ -260,14 +260,14 @@ static void guarded_heap_print_stack_traces(guarded_heap_page& page) { if (page.alloc_stack_trace_depth > 0) { - printf("alloc stack trace (%" B_PRIuSIZE "):\n", + print_stdout("alloc stack trace (%" B_PRIuSIZE "):\n", page.alloc_stack_trace_depth); guarded_heap_print_stack_trace(page.stack_trace, page.alloc_stack_trace_depth); } if (page.free_stack_trace_depth > 0) { - printf("free stack trace (%" B_PRIuSIZE "):\n", + print_stdout("free stack trace (%" B_PRIuSIZE "):\n", page.free_stack_trace_depth); guarded_heap_print_stack_trace( &page.stack_trace[page.alloc_stack_trace_depth],