mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
perf trace: Fix alignment for [continued] lines
We were not taking into account the "... [continued]" printed characters, fix it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-qt20y0acmf8k0bzisce8kw95@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
172bf02d56
commit
ac6e022cbf
@ -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 ')' */
|
||||
|
Loading…
Reference in New Issue
Block a user