summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-07 09:44:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-07 09:44:30 +0000
commitba267bce47e4f295bfe6907bfcde8a6b82a5fbf9 (patch)
tree5bd4915782d50186d277cb59ce158a7bc37ce426 /compile.c
parent2de68923da346a150263ea50b8cb6ba87ebdde7a (diff)
compile.c: refine debug prints
* compile.c (ibf_load_iseq_complete): use alternate hexadecimal form for offset. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index a0bcb0c928..d80bb701bc 100644
--- a/compile.c
+++ b/compile.c
@@ -9625,11 +9625,11 @@ ibf_load_iseq_complete(rb_iseq_t *iseq)
#if IBF_ISEQ_DEBUG
fprintf(stderr, "ibf_load_iseq_complete: load=%p iseq=%p prev=%p\n",
load, iseq, prev_src_iseq);
- fprintf(stderr, "ibf_load_iseq_complete: list=%p(%p+%x) index=%i/%u\n",
+ fprintf(stderr, "ibf_load_iseq_complete: list=%p(%p+%#x) index=%i/%u\n",
ibf_iseq_list(load),
load->buff, load->header->iseq_list_offset,
iseq->aux.loader.index, load->header->iseq_list_size);
- fprintf(stderr, "ibf_load_iseq_complete: offset=%u size=%u\n",
+ fprintf(stderr, "ibf_load_iseq_complete: offset=%#x size=%#x\n",
ibf_iseq_list(load)[iseq->aux.loader.index],
load->header->size);
#endif