aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-11-12 18:26:09 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-11-14 13:59:50 -0500
commitea432a8bb940e6bea2aaeca3c0ff3d931ad81f2e (patch)
tree2c7b667dbd683088531f6e9ca21cc6bb71b566c7 /tools/perf/builtin-top.c
parentb222213936ef7d48908be2fab7639dd535c88045 (diff)
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>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index b8f8e29db332..71e6402729a8 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1172,7 +1172,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
1172 status = target__validate(target); 1172 status = target__validate(target);
1173 if (status) { 1173 if (status) {
1174 target__strerror(target, status, errbuf, BUFSIZ); 1174 target__strerror(target, status, errbuf, BUFSIZ);
1175 ui__warning("%s", errbuf); 1175 ui__warning("%s\n", errbuf);
1176 } 1176 }
1177 1177
1178 status = target__parse_uid(target); 1178 status = target__parse_uid(target);
@@ -1180,7 +1180,7 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused)
1180 int saved_errno = errno; 1180 int saved_errno = errno;
1181 1181
1182 target__strerror(target, status, errbuf, BUFSIZ); 1182 target__strerror(target, status, errbuf, BUFSIZ);
1183 ui__error("%s", errbuf); 1183 ui__error("%s\n", errbuf);
1184 1184
1185 status = -saved_errno; 1185 status = -saved_errno;
1186 goto out_delete_evlist; 1186 goto out_delete_evlist;