/* Output a text representation of HEAP to stderr, labelling it with STR. */ void __heap_dump (struct heap_free_area *heap, const char *str) { static smallint recursed; if (! recursed) { __heap_check (heap, str); recursed = 1; __malloc_debug_printf (1, "%s: heap @0x%lx:", str, (long)heap); __heap_dump_freelist (heap); __malloc_debug_indent (-1); recursed = 0; } }
/* Output a text representation of HEAP to stderr, labelling it with STR. */ void __heap_dump (struct heap *heap, const char *str) { static int recursed = 0; if (! recursed) { __heap_check (heap, str); recursed = 1; #ifdef MALLOC_DEBUGGING __malloc_debug_printf (1, "%s: heap @0x%lx:", str, (long)heap); #endif __heap_dump_freelist (heap); #ifdef MALLOC_DEBUGGING __malloc_debug_indent (-1); #endif recursed = 0; } }