comparison graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java @ 10923:01a0f525ac17

Debug: add printf i.e., log without newline
author Bernhard Urban <bernhard.urban@jku.at>
date Thu, 01 Aug 2013 18:58:48 +0200
parents 2ff3499d408e
children d7d12ef788ba
comparison
equal deleted inserted replaced
10922:1d1675f18e85 10923:01a0f525ac17
112 } 112 }
113 output.println(String.format(msg, args)); 113 output.println(String.format(msg, args));
114 } 114 }
115 } 115 }
116 116
117 public void printf(String msg, Object... args) {
118 if (isLogEnabled()) {
119 if (lastLogScope.get() == null || !lastLogScope.get().qualifiedName.equals(this.qualifiedName)) {
120 output.println("scope: " + qualifiedName);
121 lastLogScope.set(this);
122 }
123 output.printf(msg, args);
124 }
125 }
126
117 public void dump(Object object, String formatString, Object[] args) { 127 public void dump(Object object, String formatString, Object[] args) {
118 if (isDumpEnabled()) { 128 if (isDumpEnabled()) {
119 DebugConfig config = getConfig(); 129 DebugConfig config = getConfig();
120 if (config != null) { 130 if (config != null) {
121 String message = String.format(formatString, args); 131 String message = String.format(formatString, args);