diff options
Diffstat (limited to 'tools/perf/util/data.c')
-rw-r--r-- | tools/perf/util/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/data.c b/tools/perf/util/data.c index be83516155ee..60bfc9ca1e22 100644 --- a/tools/perf/util/data.c +++ b/tools/perf/util/data.c | |||
@@ -57,7 +57,7 @@ static int open_file_read(struct perf_data_file *file) | |||
57 | int err = errno; | 57 | int err = errno; |
58 | 58 | ||
59 | pr_err("failed to open %s: %s", file->path, | 59 | pr_err("failed to open %s: %s", file->path, |
60 | strerror_r(err, sbuf, sizeof(sbuf))); | 60 | str_error_r(err, sbuf, sizeof(sbuf))); |
61 | if (err == ENOENT && !strcmp(file->path, "perf.data")) | 61 | if (err == ENOENT && !strcmp(file->path, "perf.data")) |
62 | pr_err(" (try 'perf record' first)"); | 62 | pr_err(" (try 'perf record' first)"); |
63 | pr_err("\n"); | 63 | pr_err("\n"); |
@@ -99,7 +99,7 @@ static int open_file_write(struct perf_data_file *file) | |||
99 | 99 | ||
100 | if (fd < 0) | 100 | if (fd < 0) |
101 | pr_err("failed to open %s : %s\n", file->path, | 101 | pr_err("failed to open %s : %s\n", file->path, |
102 | strerror_r(errno, sbuf, sizeof(sbuf))); | 102 | str_error_r(errno, sbuf, sizeof(sbuf))); |
103 | 103 | ||
104 | return fd; | 104 | return fd; |
105 | } | 105 | } |