libroot_debug: Replace two more uses of printf in guarded heap.

Use the internal print_stdout() instead as done when printing the
stack traces.
This commit is contained in:
Michael Lotz 2015-08-23 13:19:12 +02:00
parent 5dbea46970
commit 8b9bb054f4

View File

@ -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],