Messages in this thread Patch in this message | | | From | Namhyung Kim <> | Subject | [PATCH 2/5] perf tools: Save message when pr_*() was called | Date | Mon, 13 Jan 2014 17:00:54 +0900 |
| |
The message will be saved in a temp file so that it can be shown at a UI dialog at any time.
Signed-off-by: Namhyung Kim <namhyung@kernel.org> --- tools/perf/util/debug.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index 299b55586502..801cdf205d3e 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c @@ -19,12 +19,18 @@ bool dump_trace = false, quiet = false; static int _eprintf(int level, const char *fmt, va_list args) { int ret = 0; + va_list ap; if (verbose >= level) { + va_copy(ap, args); + if (use_browser >= 1) ui_helpline__vshow(fmt, args); else ret = vfprintf(stderr, fmt, args); + + perf_log__addv(fmt, ap); + va_end(ap); } return ret; -- 1.7.11.7
| |