perf top: Add missing newline on pr_err call
authorArnaldo Carvalho de Melo <[email protected]>
Wed, 21 Nov 2012 21:58:50 +0000 (18:58 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Sun, 9 Dec 2012 11:46:05 +0000 (08:46 -0300)
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 <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-top.c

index c9ff3950cd4be55a487ff6cbda76b4f55c47ad5d..987e1b8a9c2eeb919f5e11db60a1933db90c0b57 100644 (file)
@@ -727,7 +727,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
        }
 
        if (!machine) {
-               pr_err("%u unprocessable samples recorded.",
+               pr_err("%u unprocessable samples recorded.\n",
                       top->session->hists.stats.nr_unprocessable_samples++);
                return;
        }