mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fe80dd73b9
commit
f468e000ce
1 changed files with 1 additions and 4 deletions
5
debug.c
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue