summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-11-08 08:01:51 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-11-08 16:05:45 +0400
commit4e533165f59772b6d6afd58216650e003b53d6d1 (patch)
treed60558bccf3f7c3442c8f4dc685323b0512a18d8 /malloc.c
parent0d19cbbfacdf118b10604ea4bd9fbd1250654f5c (diff)
downloadbdwgc-4e533165f59772b6d6afd58216650e003b53d6d1.tar.gz
Use GC_log_printf for logging instead of GC_[err_]printf
* backgraph.c (GC_print_back_graph_stats): Use GC_err_printf instead of GC_printf (since invoked GC_print_heap_obj uses GC_err_printf). * darwin_stop_world.c (GC_FindTopOfStack): Replace GC_printf with GC_log_printf (inside DEBUG_THREADS blocks). * include/private/gc_priv.h (GC_printf, GC_log_printf): Add comment. * malloc.c (GC_free): Replace GC_err_printf with GC_log_printf (inside LOG_ALLOCS block). * thread_local_alloc.c (GC_malloc): Likewise.
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc.c b/malloc.c
index 4469a3bd..c10f60ae 100644
--- a/malloc.c
+++ b/malloc.c
@@ -494,7 +494,7 @@ GC_API void GC_CALL GC_free(void * p)
if (p == 0) return;
/* Required by ANSI. It's not my fault ... */
# ifdef LOG_ALLOCS
- GC_err_printf("GC_free(%p), GC: %lu\n", p, (unsigned long)GC_gc_no);
+ GC_log_printf("GC_free(%p), GC: %lu\n", p, (unsigned long)GC_gc_no);
# endif
h = HBLKPTR(p);
hhdr = HDR(h);