Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1618831

[PATCH 4/5] perf pmu: Refactor wordwrap() with ltrim()

From Taeung Song <treeze.taeung@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 4/5] perf pmu: Refactor wordwrap() with ltrim()
Date 2017-04-07 16:30 +0200
Message-ID <ttD3H-8io-1@gated-at.bofh.it> (permalink)
References <ttD3H-8io-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
---
 tools/perf/util/pmu.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index 362051e..11c7525 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);
 	}
 }
 
-- 
2.7.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 4/5] perf pmu: Refactor wordwrap() with ltrim() Taeung Song <treeze.taeung@gmail.com> - 2017-04-07 16:30 +0200

csiph-web