diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-11 21:17:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-11 21:17:37 +0000 |
commit | 64bbd55c85a3f3d7c88ba898d81e55f068e9eb7e (patch) | |
tree | 064657a863a006b6bd9c92fca647b68d6946ae77 /vm_dump.c | |
parent | 63d0ea4c03616e1f6f7e4be41c5de4cbb0a3a68e (diff) | |
download | ruby-64bbd55c85a3f3d7c88ba898d81e55f068e9eb7e.tar.gz |
Experimental: don't use $.*s of fprintf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; i<RARRAY_LEN(vm->loaded_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, |