perf tools: Ditch rtrim(), use strim() from tools/lib
Cleaning up a bit more tools/perf/util/ by using things we got from the kernel and have in tools/lib/ Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-7hluuoveryoicvkclshzjf1k@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -2071,7 +2071,8 @@ static int hist_browser__fprintf_hierarchy_entry(struct hist_browser *browser,
|
||||
advance_hpp(&hpp, ret);
|
||||
}
|
||||
|
||||
printed += fprintf(fp, "%s\n", rtrim(s));
|
||||
strim(s);
|
||||
printed += fprintf(fp, "%s\n", s);
|
||||
|
||||
if (he->leaf && folded_sign == '-') {
|
||||
printed += hist_browser__fprintf_callchain(browser, he, fp,
|
||||
|
Reference in New Issue
Block a user