diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-08-11 11:24:27 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-08-12 09:27:04 -0400 |
commit | 26270a008251ec36431623bd992252934bbe529a (patch) | |
tree | 17d004ac25006781bd504129121f9ef7e19d17ef /tools/perf/ui/browsers/scripts.c | |
parent | b62bee1bdea6d78e444183b04c81ce982a371571 (diff) |
perf ui browser: Introduce ui_browser__write_nstring()
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-437ineavoejzou727mr9bxpi@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browsers/scripts.c')
-rw-r--r-- | tools/perf/ui/browsers/scripts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/scripts.c b/tools/perf/ui/browsers/scripts.c index 402d2bd30b09..e13b48d705ef 100644 --- a/tools/perf/ui/browsers/scripts.c +++ b/tools/perf/ui/browsers/scripts.c | |||
@@ -81,7 +81,7 @@ static void script_browser__write(struct ui_browser *browser, | |||
81 | ui_browser__set_color(browser, current_entry ? HE_COLORSET_SELECTED : | 81 | ui_browser__set_color(browser, current_entry ? HE_COLORSET_SELECTED : |
82 | HE_COLORSET_NORMAL); | 82 | HE_COLORSET_NORMAL); |
83 | 83 | ||
84 | slsmg_write_nstring(sline->line, browser->width); | 84 | ui_browser__write_nstring(browser, sline->line, browser->width); |
85 | } | 85 | } |
86 | 86 | ||
87 | static int script_browser__run(struct perf_script_browser *browser) | 87 | static int script_browser__run(struct perf_script_browser *browser) |