diff options
-rw-r--r-- | tools/perf/builtin-test.c | 8 |
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 | ||