diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-31 12:46:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-31 12:46:15 +0000 |
commit | 4010db16cf249c4dc48896918a1e64fba9216653 (patch) | |
tree | c7822a25196f2bb72a878c108c3589cd9ded583e | |
parent | edb43d2a26b6c0a0a7fbc1de7f73d9ecef29288a (diff) | |
download | ruby-4010db16cf249c4dc48896918a1e64fba9216653.tar.gz |
gc.c: use PRIdSIZE
* gc.c (heap_extend_pages): fix format specifiers for size_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | gc.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1626,8 +1626,14 @@ heap_extend_pages(rb_objspace_t *objspace, size_t free_slots, size_t total_slots next_used = (size_t)(f * used); - if (0) fprintf(stderr, "free_slots(%8ld)/total_slots(%8ld)=%1.2f, G(%1.2f), f(%1.2f), used(%8ld) => next_used(%8ld)\n", - free_slots, total_slots, free_slots/(double)total_slots, goal_ratio, f, used, next_used); + if (0) { + fprintf(stderr, + "free_slots(%8"PRIdSIZE")/total_slots(%8"PRIdSIZE")=%1.2f," + " G(%1.2f), f(%1.2f)," + " used(%8"PRIdSIZE") => next_used(%8"PRIdSIZE")\n", + free_slots, total_slots, free_slots/(double)total_slots, + goal_ratio, f, used, next_used); + } } if (gc_params.growth_max_slots > 0) { |