diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-25 02:27:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-25 02:27:34 +0000 |
commit | 9abf09133d2f4561801308234023e9405139f705 (patch) | |
tree | 95a244aac6bf6081f0370bb8b8e6296ccc33ec2b /vm_method.c | |
parent | 8a4fb4acba170bae08b2d3c29f380b7a7983efd8 (diff) | |
download | ruby-9abf09133d2f4561801308234023e9405139f705.tar.gz |
vm_method.c: quote method name
* vm_method.c (set_method_visibility): quote unprintable method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index 3882b98d4e..c9f04942e1 100644 --- a/vm_method.c +++ b/vm_method.c @@ -1274,7 +1274,8 @@ set_method_visibility(VALUE self, int argc, VALUE *argv, rb_method_flag_t ex) secure_visibility(self); if (argc == 0) { - rb_warning("%s with no argument is just ignored", rb_id2name(rb_frame_callee())); + rb_warning("%"PRIsVALUE" with no argument is just ignored", + QUOTE_ID(rb_frame_callee())); } for (i = 0; i < argc; i++) { |