diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-26 12:13:13 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-01 22:50:33 -0300 |
commit | 13c230ab6e56c6ae3a968f01f4c6505b794cecad (patch) | |
tree | e29882ad70bfa5268376f411084c68c5c5d37229 /tools/perf/util/pmu.c | |
parent | 3ca43b6053c9a5dbbffb02aa010c1ccf8eb460a8 (diff) | |
download | linux-13c230ab6e56c6ae3a968f01f4c6505b794cecad.tar.gz linux-13c230ab6e56c6ae3a968f01f4c6505b794cecad.tar.bz2 linux-13c230ab6e56c6ae3a968f01f4c6505b794cecad.zip |
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>
Diffstat (limited to 'tools/perf/util/pmu.c')
-rw-r--r-- | tools/perf/util/pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 38dc0c6e28b8..8139a1f3ed39 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -395,7 +395,7 @@ static int perf_pmu__new_alias(struct list_head *list, char *dir, char *name, FI buf[ret] = 0; /* Remove trailing newline from sysfs file */ - rtrim(buf); + strim(buf); return __perf_pmu__new_alias(list, dir, name, NULL, buf, NULL, NULL, NULL, NULL, NULL, NULL); |