[PATCH v2 0/5] Refactoring with ltrim() and rtrim()

From: Taeung Song
Date: Fri Apr 07 2017 - 20:53:18 EST


Hi, :)

It is to simply refactor the code about stip strings
with ltrim() and rtrim().

I'd appreciate some feedback on this PATCHset.

The code is avaiable at 'refactor-trim-v2' branch in

git://github.com/taeung/linux-perf

Thanks,
Taeung

v2:
- remove changes unrelated to the main purpose of PATCH (Arnaldo)

Taeung Song (5):
perf annotate: Refactor the code to parse disassemble lines with
{l,r}trim()
perf annotate: Use stripped line instead of raw disassemble line
perf ui browser: Refactor the code to parse color configs with ltrim()
perf pmu: Refactor wordwrap() with ltrim()
perf tools: Refactor the code to strip command name with {l,r}trim()

tools/perf/ui/browser.c | 2 +-
tools/perf/util/annotate.c | 46 +++++++++-------------------------------------
tools/perf/util/event.c | 11 ++---------
tools/perf/util/pmu.c | 3 +--
4 files changed, 13 insertions(+), 49 deletions(-)

--
2.7.4