projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21600f
)
perf pmu: Refactor wordwrap() with ltrim()
author
Taeung Song
<treeze.taeung@gmail.com>
Fri, 7 Apr 2017 14:24:20 +0000
(23:24 +0900)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Tue, 11 Apr 2017 11:45:10 +0000
(08:45 -0300)
Signed-off-by: Taeung 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.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/util/pmu.c
b/tools/perf/util/pmu.c
index 362051ea7f3deb44f4671ed8488ef99c45dcd5be..11c752561c558c0fccf41f0e403d48eb6b38ba2c 100644
(file)
--- 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);
}
}