[前][次][番号順一覧][スレッド一覧]

ruby-changes:50904

From: nobu <ko1@a...>
Date: Sat, 7 Apr 2018 18:44:36 +0900 (JST)
Subject: [ruby-changes:50904] nobu:r63111 (trunk): compile.c: refine debug prints

nobu	2018-04-07 18:44:30 +0900 (Sat, 07 Apr 2018)

  New Revision: 63111

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63111

  Log:
    compile.c: refine debug prints
    
    * compile.c (ibf_load_iseq_complete): use alternate hexadecimal
      form for offset.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 63110)
+++ compile.c	(revision 63111)
@@ -9625,11 +9625,11 @@ ibf_load_iseq_complete(rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/compile.c#L9625
 #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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]