aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaeung Song <[email protected]>2017-04-07 23:24:20 +0900
committerArnaldo Carvalho de Melo <[email protected]>2017-04-11 08:45:10 -0300
commitaa4beb10a94358bf2474d1fc9c4ccde34660cc9d (patch)
treea5f609682be180597a568a27187f5835747b28dc
parente21600fd41106f7a0ca124cec2404b2b3562768d (diff)
perf pmu: Refactor wordwrap() with ltrim()
Signed-off-by: Taeung Song <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/pmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index 362051ea7f3d..11c752561c55 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -1148,8 +1148,7 @@ static void wordwrap(char *s, int start, int max, int corr)
break;
s += wlen;
column += n;
- while (isspace(*s))
- s++;
+ s = ltrim(s);
}
}