Commit aa4beb10 authored by Taeung Song's avatar Taeung Song Committed by Arnaldo Carvalho de Melo

perf pmu: Refactor wordwrap() with ltrim()

Signed-off-by: default avatarTaeung Song <treeze.taeung@gmail.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1491575061-704-5-git-send-email-treeze.taeung@gmail.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e21600fd
...@@ -1148,8 +1148,7 @@ static void wordwrap(char *s, int start, int max, int corr) ...@@ -1148,8 +1148,7 @@ static void wordwrap(char *s, int start, int max, int corr)
break; break;
s += wlen; s += wlen;
column += n; column += n;
while (isspace(*s)) s = ltrim(s);
s++;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment