[PATCH 4/9] tests: Use sprintrc for return code output in sched_rr_get_interval test

Eugene Syromyatnikov evgsyr at gmail.com
Mon Sep 5 01:31:48 UTC 2016


* tests/sched_rr_get_interval.c: Use sprintrc for return code output.
---
 tests/sched_rr_get_interval.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/sched_rr_get_interval.c b/tests/sched_rr_get_interval.c
index 8501346..73e2d39 100644
--- a/tests/sched_rr_get_interval.c
+++ b/tests/sched_rr_get_interval.c
@@ -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;
-- 
1.7.10.4





More information about the Strace-devel mailing list