Mercurial > hg > truffle
changeset 21454:0a50a8e82e1b
Support string formatting in forceDump
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 18 May 2015 14:29:35 -0700 |
parents | 15a46a918fc1 |
children | ddc5350fe1ab |
files | graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java Mon May 18 22:27:24 2015 +0200 +++ b/graal/com.oracle.graal.debug/src/com/oracle/graal/debug/internal/DebugScope.java Mon May 18 14:29:35 2015 -0700 @@ -269,9 +269,10 @@ /** * This method exists mainly to allow a debugger (e.g., Eclipse) to force dump a graph. */ - public static void forceDump(Object object, String message) { + public static void forceDump(Object object, String format, Object... args) { DebugConfig config = getConfig(); if (config != null) { + String message = String.format(format, args); for (DebugDumpHandler dumpHandler : config.dumpHandlers()) { dumpHandler.dump(object, message); }