From 78625e585207bab02c5c2b905797849996cf5436 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 29 Oct 2012 03:19:38 +0000 Subject: gc.c: PRIuSIZE * gc.c (gc_profile_dump_on): use PRIuSIZE instead of 'zu'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gc.c b/gc.c index 0f1b11981b..7862e22fc8 100644 --- a/gc.c +++ b/gc.c @@ -4151,14 +4151,14 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE)) int index = 1; size_t i; gc_profile_record r; - append(out, rb_sprintf("GC %zu invokes.\n", objspace->count)); + append(out, rb_sprintf("GC %"PRIuSIZE" invokes.\n", objspace->count)); append(out, rb_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n")); for (i = 0; i < count; i++) { r = objspace->profile.record[i]; #if !GC_PROFILE_MORE_DETAIL if (r.is_marked) { #endif - append(out, rb_sprintf("%5d %19.3f %20zu %20zu %20zu %30.20f\n", + append(out, rb_sprintf("%5d %19.3f %20"PRIuSIZE" %20"PRIuSIZE" %20"PRIuSIZE" %30.20f\n", index++, r.gc_invoke_time, r.heap_use_size, r.heap_total_size, r.heap_total_objects, r.gc_time*1000)); #if !GC_PROFILE_MORE_DETAIL @@ -4172,7 +4172,7 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE)) index = 1; for (i = 0; i < count; i++) { r = objspace->profile.record[i]; - append(out, rb_sprintf("%5d %17zu %17zu %9zu %14s %25.20f %25.20f\n", + append(out, rb_sprintf("%5d %17"PRIuSIZE" %17"PRIuSIZE" %9"PRIuSIZE" %14s %25.20f %25.20f\n", index++, r.allocate_increase, r.allocate_limit, r.heap_use_slots, (r.have_finalize ? "true" : "false"), r.gc_mark_time*1000, r.gc_sweep_time*1000)); -- cgit v1.2.3