diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-09-05 14:00:46 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-09-05 15:58:35 +0000 |
commit | b5d7a0b7cf4893e15e64ab4467d1cd55e1fb79c9 (patch) | |
tree | 86a4b0337db8223f560e4e93f03a29ddc6bc3fed /tests/xetpriority.c | |
parent | b1777837707de98526f1903834c5606a45c0abf8 (diff) | |
download | strace-b5d7a0b7cf4893e15e64ab4467d1cd55e1fb79c9.tar.gz |
tests: use sprintrc in tests/xetpriority.c
* tests/xetpriority.c (main): Use sprintrc.
Diffstat (limited to 'tests/xetpriority.c')
-rw-r--r-- | tests/xetpriority.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/xetpriority.c b/tests/xetpriority.c index 640118732..dfd32642a 100644 --- a/tests/xetpriority.c +++ b/tests/xetpriority.c @@ -18,11 +18,7 @@ main(void) rc = syscall(__NR_setpriority, PRIO_PROCESS, (unsigned long) 0xffffffff00000000 | pid, (unsigned long) 0xffffffff00000000); - if (rc) - printf("setpriority(PRIO_PROCESS, %d, 0) = %ld %s (%m)\n", - pid, rc, errno2name()); - else - printf("setpriority(PRIO_PROCESS, %d, 0) = 0\n", pid); + printf("setpriority(PRIO_PROCESS, %d, 0) = %s\n", pid, sprintrc(rc)); puts("+++ exited with 0 +++"); return 0; |