ruby-changes:25328
From: nobu <ko1@a...>
Date: Mon, 29 Oct 2012 12:19:58 +0900 (JST)
Subject: [ruby-changes:25328] nobu:r37380 (trunk): gc.c: PRIuSIZE
nobu 2012-10-29 12:19:38 +0900 (Mon, 29 Oct 2012) New Revision: 37380 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37380 Log: gc.c: PRIuSIZE * gc.c (gc_profile_dump_on): use PRIuSIZE instead of 'zu'. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 37379) +++ gc.c (revision 37380) @@ -4151,14 +4151,14 @@ 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 @@ 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)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/