some intptr_t printf fixes

This commit is contained in:
Matthew Flatt 2011-01-04 16:12:12 -07:00
parent c0ec320be0
commit e88c2142e6

View File

@ -7920,7 +7920,8 @@ static void inform_GC(int major_gc, intptr_t pre_used, intptr_t post_used)
intptr_t buflen;
sprintf(buf,
"GC [%s] at %ld bytes; %ld collected in %ld msec",
"GC [%s] at %" PRIxPTR " bytes; %" PRIxPTR
" collected in %" PRIxPTR " msec",
(major_gc ? "major" : "minor"),
pre_used, pre_used - post_used,
end_this_gc_time - start_this_gc_time);