Mercurial > hg > truffle
changeset 18901:06536c3846e7
Emit warnings to TTY instead of System.out
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 21 Jan 2015 10:19:33 -0800 |
parents | 7e500c20208c |
children | b7cb27a82d51 |
files | graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java Wed Jan 21 19:03:37 2015 +0100 +++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java Wed Jan 21 10:19:33 2015 -0800 @@ -209,11 +209,10 @@ if (config instanceof TopLevelDebugConfig) { return (TopLevelDebugConfig) config; } else { - PrintStream out = System.out; if (config == null) { - out.printf("DebugScope.%s ignored because debugging is disabled%n", msg); + TTY.println("DebugScope.%s ignored because debugging is disabled", msg); } else { - out.printf("DebugScope.%s ignored because top level delegate config missing%n", msg); + TTY.println("DebugScope.%s ignored because top level delegate config missing", msg); } return null; } @@ -266,8 +265,7 @@ dumpHandler.dump(object, message); } } else { - PrintStream out = System.out; - out.println("Forced dump ignored because debugging is disabled - use -G:Dump=xxx option"); + TTY.println("Forced dump ignored because debugging is disabled - use -G:Dump=xxx option"); } }