From 8e01dd6fc826128909e35f41d20a531d058a4e79 Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 15 Feb 2014 14:39:47 +0000 Subject: merge revision(s) r43440: * struct.c (new_struct): fix warning message, class name and encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@44972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- struct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index 7091322d05..9f2155aeee 100644 --- a/struct.c +++ b/struct.c @@ -194,7 +194,7 @@ new_struct(VALUE name, VALUE super) } id = rb_to_id(name); if (rb_const_defined_at(super, id)) { - rb_warn("redefining constant Struct::%s", StringValuePtr(name)); + rb_warn("redefining constant %"PRIsVALUE"::%"PRIsVALUE, super, name); rb_mod_remove_const(super, ID2SYM(id)); } return rb_define_class_id_under(super, id, super); -- cgit v1.2.3