tests: use sprintrc in tests/xetpriority.c
* tests/xetpriority.c (main): Use sprintrc.
This commit is contained in:
parent
b177783770
commit
b5d7a0b7cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user