projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
172bf02
)
perf trace: Fix alignment for [continued] lines
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 7 Jan 2019 19:54:38 +0000
(16:54 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 8 Jan 2019 16:28:12 +0000
(13:28 -0300)
We were not taking into account the "... [continued]" printed
characters, fix it.
Cc: Adrian Hunter <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Luis Cláudio Gonçalves <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
https://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-trace.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-trace.c
b/tools/perf/builtin-trace.c
index b8bf5d02556345d746d841b7874cdcc2cfb941a9..ed4583128b9ce2bd17a25c105c908a38f28a8eed 100644
(file)
--- a/
tools/perf/builtin-trace.c
+++ b/
tools/perf/builtin-trace.c
@@
-2032,9
+2032,10
@@
static int trace__sys_exit(struct trace *trace, struct perf_evsel *evsel,
if (ttrace->entry_pending) {
printed = fprintf(trace->output, "%s", ttrace->entry_str);
} else {
- fprintf(trace->output, " ... [");
+
printed +=
fprintf(trace->output, " ... [");
color_fprintf(trace->output, PERF_COLOR_YELLOW, "continued");
- fprintf(trace->output, "]: %s()", sc->name);
+ printed += 9;
+ printed += fprintf(trace->output, "]: %s()", sc->name);
}
printed++; /* the closing ')' */