perf ui/helpline: Introduce ui_helpline__vshow()
The ui_helpline__vshow() will be used for pr_* functions. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/r/1352911664-24620-3-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
752914208a
commit
b56e53312d
@@ -23,10 +23,8 @@ int eprintf(int level, const char *fmt, ...)
|
||||
|
||||
if (verbose >= level) {
|
||||
va_start(args, fmt);
|
||||
if (use_browser == 1)
|
||||
ret = ui_helpline__show_help(fmt, args);
|
||||
else if (use_browser == 2)
|
||||
ret = perf_gtk__show_helpline(fmt, args);
|
||||
if (use_browser > 1)
|
||||
ui_helpline__vshow(fmt, args);
|
||||
else
|
||||
ret = vfprintf(stderr, fmt, args);
|
||||
va_end(args);
|
||||
|
Reference in New Issue
Block a user