From b0d4f9bc0bd4f0374e28dd0509d83b377e19e504 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 27 Jul 2005 14:29:13 +0000 Subject: * gc.c (obj_free): make message formant consistent with one from gc_mark(). [ruby-talk:149668] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 90f8d692f..3ac7d07e2 100644 --- a/eval.c +++ b/eval.c @@ -8511,13 +8511,13 @@ proc_to_s(self) len += strlen(node->nd_file) + 2 + (SIZEOF_LONG*CHAR_BIT-NODE_LSHIFT)/3; str = rb_str_new(0, len); snprintf(RSTRING(str)->ptr, len+1, - "#<%s:0x%lx@%s:%d>", cname, (VALUE)data->body, + "#<%s:0x%.*lx@%s:%d>", cname, w, (VALUE)data->body, node->nd_file, nd_line(node)); } else { str = rb_str_new(0, len); snprintf(RSTRING(str)->ptr, len+1, - "#<%s:0x%lx>", cname, (VALUE)data->body); + "#<%s:0x%.*lx>", cname, w, (VALUE)data->body); } RSTRING(str)->len = strlen(RSTRING(str)->ptr); if (OBJ_TAINTED(self)) OBJ_TAINT(str); -- cgit