From 64bbd55c85a3f3d7c88ba898d81e55f068e9eb7e Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 11 Dec 2012 21:17:37 +0000 Subject: [PATCH] Experimental: don't use $.*s of fprintf git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_dump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm_dump.c b/vm_dump.c index 55290e4825..d9f079aa0a 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -676,7 +676,7 @@ rb_vm_bugreport(void) int i; VALUE name; long len; - const int max_name_length = 128; + const int max_name_length = 1024; # define LIMITED_NAME_LENGTH(s) \ (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len) @@ -688,8 +688,8 @@ rb_vm_bugreport(void) for (i=0; iloaded_features); i++) { name = RARRAY_PTR(vm->loaded_features)[i]; if (RB_TYPE_P(name, T_STRING)) { - fprintf(stderr, " %4d %.*s\n", i, - LIMITED_NAME_LENGTH(name), RSTRING_PTR(name)); + fprintf(stderr, " %4d %s\n", i, + RSTRING_PTR(name)); } else { fprintf(stderr, " %4d #<%s:%p>\n", i,