summaryrefslogtreecommitdiff
path: root/dbg_mlc.c
diff options
context:
space:
mode:
authorhboehm <hboehm>2009-03-01 01:20:14 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:44 +0200
commitee6104254324ccb8728cca74b866c5b26d481cfc (patch)
treeaa419b7c1a748105785feca4a00dbee3c2eaadef /dbg_mlc.c
parent6aed8bc60c99a11ab94c8dca3b7ca15926f10c4b (diff)
2009-02-28 Hans Boehm <Hans.Boehm@hp.com> (Mostly Ivan Maidansky)
* allchblk.c, backgraph.c, dbg_mlc.c, dyn_load.c, finalize.c, include/private/gc_pmark.h, malloc.c, mark.c, os_dep.c, pthread_stop_world.c, pthread_support.c, reclaim.c, thread_local_alloc.c. * misc.s: Refine comment. 2009-02-28 Hans Boehm <Hans.Boehm@hp.com> * os_dep.c: Define GC_GWW_BUF_LEN more intelligently. Add FIXME comment.
Diffstat (limited to 'dbg_mlc.c')
-rw-r--r--dbg_mlc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dbg_mlc.c b/dbg_mlc.c
index 1758635..70137d4 100644
--- a/dbg_mlc.c
+++ b/dbg_mlc.c
@@ -193,8 +193,7 @@ GC_bool GC_has_other_debug_info(ptr_t p)
GC_err_printf("No debug info in object: Can't find reference\n");
goto out;
}
- GC_err_printf("Reachable via %d levels of pointers from ",
- (unsigned long)i);
+ GC_err_printf("Reachable via %d levels of pointers from ", i);
switch(source) {
case GC_REFD_FROM_ROOT:
GC_err_printf("root at %p\n\n", base);
@@ -417,8 +416,8 @@ STATIC void GC_print_smashed_obj(ptr_t p, ptr_t clobbered_addr)
GC_err_printf("%p in or near object at %p(", clobbered_addr, p);
if (clobbered_addr <= (ptr_t)(&(ohdr -> oh_sz))
|| ohdr -> oh_string == 0) {
- GC_err_printf("<smashed>, appr. sz = %ld)\n",
- (GC_size((ptr_t)ohdr) - DEBUG_BYTES));
+ GC_err_printf("<smashed>, appr. sz = %lu)\n",
+ (unsigned long)(GC_size((ptr_t)ohdr) - DEBUG_BYTES));
} else {
if ((word)(ohdr -> oh_string) < HBLKSIZE) {
GC_err_puts("(smashed string)");