Skip to content
Browse files

* debug.c (ruby_debug_print_indent): use length in fprintf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent fe80dd7 commit f468e000ce3ed8c5158af06600a0724bf9619c4b @nobu nobu committed Feb 23, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 debug.c
View
5 debug.c
@@ -70,10 +70,7 @@ void
ruby_debug_print_indent(int level, int debug_level, int indent_level)
{
if (level < debug_level) {
- int i;
- for (i = 0; i < indent_level; i++) {
- fprintf(stderr, " ");
- }
+ fprintf(stderr, "%*s", indent_level, "");
fflush(stderr);
}
}

0 comments on commit f468e00

Please sign in to comment.
Something went wrong with that request. Please try again.