summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:43 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:43 (GMT)
commit76091d43881866f78824b88d48840afce9862bb8 (patch)
tree347372d0614dafc89b1aa90e510d9f8785840158 /vm_dump.c
parentf03146dd70cf21efcb9f0e432b4c3bf1e3cf1e5c (diff)
"%z" printf format specifier is a C99ism
PRIxSIZE is also. But shimmed in ruby.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 6cc638f..933e8db 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -827,10 +827,11 @@ print_machine_register(size_t reg, const char *reg_name, int col_count, int max_
char buf[64];
#ifdef __LP64__
- ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%016zx", reg_name, reg);
+ ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%016" PRIxSIZE, reg_name, reg);
#else
- ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%08zx", reg_name, reg);
+ ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%08" PRIxSIZE, reg_name, reg);
#endif
+#undef zx
if (col_count + ret > max_col) {
fputs("\n", stderr);
col_count = 0;