perf ui browser: Introduce ui_browser__printf()
To remove direct access to libslang functions, with the immediate goal of implementing horizontal scrolling at the ui_browser level, but also because we may at some point want to implement ui_browser with other UIs in addition to the current libslang implementation. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-w0niblabqrkecs4o0eogfy6c@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -52,6 +52,15 @@ void ui_browser__write_nstring(struct ui_browser *browser __maybe_unused, const
|
||||
slsmg_write_nstring(msg, width);
|
||||
}
|
||||
|
||||
void ui_browser__printf(struct ui_browser *browser __maybe_unused, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
va_start(args, fmt);
|
||||
slsmg_vprintf(fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
static struct list_head *
|
||||
ui_browser__list_head_filter_entries(struct ui_browser *browser,
|
||||
struct list_head *pos)
|
||||
|
Reference in New Issue
Block a user