From cfa4a59da811ba9c0cfdf53e525dd234d2c4446d Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 4 Dec 2012 07:23:34 +0000 Subject: marshal.c: PRIsVALUE * marshal.c (path2class, path2module): use PRIsVALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- marshal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'marshal.c') diff --git a/marshal.c b/marshal.c index 588b3deed2..061a8d5f31 100644 --- a/marshal.c +++ b/marshal.c @@ -1381,8 +1381,7 @@ path2class(VALUE path) VALUE v = rb_path_to_class(path); if (!RB_TYPE_P(v, T_CLASS)) { - rb_raise(rb_eArgError, "%.*s does not refer to class", - (int)RSTRING_LEN(path), RSTRING_PTR(path)); + rb_raise(rb_eArgError, "%"PRIsVALUE" does not refer to class", path); } return v; } @@ -1393,8 +1392,7 @@ path2module(VALUE path) VALUE v = rb_path_to_class(path); if (!RB_TYPE_P(v, T_MODULE)) { - rb_raise(rb_eArgError, "%.*s does not refer to module", - (int)RSTRING_LEN(path), RSTRING_PTR(path)); + rb_raise(rb_eArgError, "%"PRIsVALUE" does not refer to module", path); } return v; } -- cgit v1.2.3