提交 ee8d7787 编写于 作者: A Arnaldo Carvalho de Melo

perf top: Add missing newline on pr_err call

The perf_event__process_sample function, when not finding a machine
associated with a sample, was calling pr_err without a newline,
garbling the screen on TUI mode due to a problem introduced by a
recent ui_helpline patch.

On --stdio it would just concatenate the messages for each sample with
no machine associated, fix it by adding the newline.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-vuz88welqvp15c2uybd9osnz@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 03cd2094
...@@ -727,7 +727,7 @@ static void perf_event__process_sample(struct perf_tool *tool, ...@@ -727,7 +727,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
} }
if (!machine) { if (!machine) {
pr_err("%u unprocessable samples recorded.", pr_err("%u unprocessable samples recorded.\n",
top->session->hists.stats.nr_unprocessable_samples++); top->session->hists.stats.nr_unprocessable_samples++);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册