[PATCH 2/9] tests: Use sprintrc for return code output in sched_xetscheduler test
Eugene Syromyatnikov
evgsyr at gmail.com
Mon Sep 5 01:33:16 UTC 2016
* tests/sched_xetscheduler.c: Use sprintrc for return code output.
---
tests/sched_xetscheduler.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/sched_xetscheduler.c b/tests/sched_xetscheduler.c
index d3b7759..ffb3307 100644
--- a/tests/sched_xetscheduler.c
+++ b/tests/sched_xetscheduler.c
@@ -48,8 +48,8 @@ main(void)
param->sched_priority = -1;
rc = syscall(__NR_sched_setscheduler, 0, SCHED_FIFO, param);
- printf("sched_setscheduler(0, SCHED_FIFO, [%d]) = %ld %s (%m)\n",
- param->sched_priority, rc, errno2name());
+ printf("sched_setscheduler(0, SCHED_FIFO, [%d]) = %s\n",
+ param->sched_priority, sprintrc(rc));
puts("+++ exited with 0 +++");
return 0;
--
1.7.10.4
More information about the Strace-devel
mailing list