From: Taeung Song Date: Fri, 7 Apr 2017 14:24:20 +0000 (+0900) Subject: perf pmu: Refactor wordwrap() with ltrim() X-Git-Tag: MMI-PSA29.97-13-9~5737^2~12^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa4beb10a94358bf2474d1fc9c4ccde34660cc9d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf pmu: Refactor wordwrap() with ltrim() Signed-off-by: Taeung Song Cc: Andi Kleen Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link: http://lkml.kernel.org/r/1491575061-704-5-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- 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); } }