tests: use sprintrc for return code output in sched_rr_get_interval test

* tests/sched_rr_get_interval.c (main): Use sprintrc for return code
output.
This commit is contained in:
Eugene Syromyatnikov 2016-09-05 04:31:48 +03:00 committed by Dmitry V. Levin
parent 7890a1e208
commit 2fdb64efd6

View File

@ -12,8 +12,7 @@ main(void)
{
struct timespec *const tp = tail_alloc(sizeof(struct timespec));
long rc = syscall(__NR_sched_rr_get_interval, -1, tp);
printf("sched_rr_get_interval(-1, %p) = %ld %s (%m)\n",
tp, rc, errno2name());
printf("sched_rr_get_interval(-1, %p) = %s\n", sprintrc(rc));
puts("+++ exited with 0 +++");
return 0;