diff options
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 8f219223f305..f7d7dbbd2af6 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c | |||
@@ -374,7 +374,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv) | |||
374 | /* Check for ENOSPC and EIO errors.. */ | 374 | /* Check for ENOSPC and EIO errors.. */ |
375 | if (fflush(stdout)) { | 375 | if (fflush(stdout)) { |
376 | fprintf(stderr, "write failure on standard output: %s", | 376 | fprintf(stderr, "write failure on standard output: %s", |
377 | strerror_r(errno, sbuf, sizeof(sbuf))); | 377 | str_error_r(errno, sbuf, sizeof(sbuf))); |
378 | goto out; | 378 | goto out; |
379 | } | 379 | } |
380 | if (ferror(stdout)) { | 380 | if (ferror(stdout)) { |
@@ -383,7 +383,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv) | |||
383 | } | 383 | } |
384 | if (fclose(stdout)) { | 384 | if (fclose(stdout)) { |
385 | fprintf(stderr, "close failed on standard output: %s", | 385 | fprintf(stderr, "close failed on standard output: %s", |
386 | strerror_r(errno, sbuf, sizeof(sbuf))); | 386 | str_error_r(errno, sbuf, sizeof(sbuf))); |
387 | goto out; | 387 | goto out; |
388 | } | 388 | } |
389 | status = 0; | 389 | status = 0; |
@@ -615,7 +615,7 @@ int main(int argc, const char **argv) | |||
615 | } | 615 | } |
616 | 616 | ||
617 | fprintf(stderr, "Failed to run command '%s': %s\n", | 617 | fprintf(stderr, "Failed to run command '%s': %s\n", |
618 | cmd, strerror_r(errno, sbuf, sizeof(sbuf))); | 618 | cmd, str_error_r(errno, sbuf, sizeof(sbuf))); |
619 | out: | 619 | out: |
620 | return 1; | 620 | return 1; |
621 | } | 621 | } |