From 689df4ae2a8ee6606c13ac9173ffce85aa1b06b7 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 27 Feb 2015 07:23:23 +0000 Subject: compile.c: debug prints to stderr * compile.c: send all debug prints to stderr, as ruby_debug_printf does. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 91d1310ddf..b9e8f08912 100644 --- a/compile.c +++ b/compile.c @@ -156,6 +156,7 @@ r_value(VALUE value) #endif #if CPDEBUG > 1 || CPDEBUG < 0 +#define printf ruby_debug_printf #define debugs if (compile_debug_print_indent(1)) ruby_debug_printf #define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs((msg), stderr)), (v)) #else @@ -1045,7 +1046,6 @@ iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *anchor) if (compile_debug > 1) { VALUE str = rb_iseq_disasm(iseq->self); printf("%s\n", StringValueCStr(str)); - fflush(stdout); } debugs("[compile step: finish]\n"); -- cgit v1.2.3