]> granicus.if.org Git - strace/commitdiff
tests: use sprintrc for return code output in sched_rr_get_interval test
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 5 Sep 2016 01:31:48 +0000 (04:31 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Sep 2016 15:58:35 +0000 (15:58 +0000)
* tests/sched_rr_get_interval.c (main): Use sprintrc for return code
output.

tests/sched_rr_get_interval.c

index 85013469872502c24d1dd7e83117a1e782ff35dc..73e2d39adec7bfb6a7552af0b06ba3c66dd1fb88 100644 (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;