Skip to content

Commit ea432a8

Browse files
ingomolnaracmel
authored andcommitted
perf top: Add missing newline if the 'uid' is invalid
Add missing newline if the 'uid' is invalid: hubble:~> perf top --stdio -u help Error: Invalid User: helphubble:~> Fixed by this patch: comet:~/tip/tools/perf> perf top --stdio -u help Error: Invalid User: help comet:~/tip/tools/perf> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/20131112232609.GA31474@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent b222213 commit ea432a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tools/perf/builtin-top.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,15 +1172,15 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
11721172
status = target__validate(target);
11731173
if (status) {
11741174
target__strerror(target, status, errbuf, BUFSIZ);
1175-
ui__warning("%s", errbuf);
1175+
ui__warning("%s\n", errbuf);
11761176
}
11771177

11781178
status = target__parse_uid(target);
11791179
if (status) {
11801180
int saved_errno = errno;
11811181

11821182
target__strerror(target, status, errbuf, BUFSIZ);
1183-
ui__error("%s", errbuf);
1183+
ui__error("%s\n", errbuf);
11841184

11851185
status = -saved_errno;
11861186
goto out_delete_evlist;

0 commit comments

Comments
 (0)