diff --git a/runtime/GC/SemiSpace/semispace.c b/runtime/GC/SemiSpace/semispace.c index a005a48c888..df60b623b0d 100644 --- a/runtime/GC/SemiSpace/semispace.c +++ b/runtime/GC/SemiSpace/semispace.c @@ -75,7 +75,7 @@ static void* llvm_gc_alloc_slow(unsigned Size) { static void process_pointer(void **Root, void *Meta) { - printf("process_root[0x%X] = 0x%X\n", (unsigned) Root, (unsigned) *Root); + printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root); } void llvm_gc_collect() {