aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-09-11 22:11:05 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-09-14 14:48:27 -0400
commitbb77ac3a36f896bc6acdfcafdebfa1434f775ed4 (patch)
treef6408d4f51ebf2ed659ccf12db7af9468504b206
parent7b0295b3db20a89b3296673871858b9ab6b68404 (diff)
perf test: Fixup for the die() removal
The commit 32c7f7383a09 ("perf test: Remove die() calls") replaced die() call to pr_debug + return -1, but it should be pr_err otherwise it'll not show up unless -v option is given. Fix it. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1347415866-303-1-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/builtin-test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index d33143efefce..4aed1553db56 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -1026,15 +1026,15 @@ static int __test__rdpmc(void)
1026 1026
1027 fd = sys_perf_event_open(&attr, 0, -1, -1, 0); 1027 fd = sys_perf_event_open(&attr, 0, -1, -1, 0);
1028 if (fd < 0) { 1028 if (fd < 0) {
1029 pr_debug("Error: sys_perf_event_open() syscall returned " 1029 pr_err("Error: sys_perf_event_open() syscall returned "
1030 "with %d (%s)\n", fd, strerror(errno)); 1030 "with %d (%s)\n", fd, strerror(errno));
1031 return -1; 1031 return -1;
1032 } 1032 }
1033 1033
1034 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); 1034 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0);
1035 if (addr == (void *)(-1)) { 1035 if (addr == (void *)(-1)) {
1036 pr_debug("Error: mmap() syscall returned with (%s)\n", 1036 pr_err("Error: mmap() syscall returned with (%s)\n",
1037 strerror(errno)); 1037 strerror(errno));
1038 goto out_close; 1038 goto out_close;
1039 } 1039 }
1040 1040