diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 15:09:56 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2013-11-12 15:12:16 +0000 |
commit | e19a712aae9a851a81a6bc31c411ad31f1a20a93 (patch) | |
tree | 7b537e62edd028f8106806f7cde33167acafadde | |
parent | ae5aa47370455123bf84e52dd8354d26c29efea8 (diff) | |
download | strace-e19a712aae9a851a81a6bc31c411ad31f1a20a93.tar.gz strace-e19a712aae9a851a81a6bc31c411ad31f1a20a93.tar.bz2 strace-e19a712aae9a851a81a6bc31c411ad31f1a20a93.tar.xz |
Use standard names of sched_param structure members
* process.c (sys_sched_setscheduler, sys_sched_getparam,
sys_sched_setparam): Use portable struct sched_param member name
sched_priority instead of glibc specific __sched_priority.
Reported by John Spencer.
-rw-r--r-- | process.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2875,7 +2875,7 @@ sys_sched_setscheduler(struct tcb *tcp) if (umove(tcp, tcp->u_arg[2], &p) < 0) tprintf(", %#lx", tcp->u_arg[2]); else - tprintf(", { %d }", p.__sched_priority); + tprintf(", { %d }", p.sched_priority); } return 0; } @@ -2890,7 +2890,7 @@ sys_sched_getparam(struct tcb *tcp) if (umove(tcp, tcp->u_arg[1], &p) < 0) tprintf("%#lx", tcp->u_arg[1]); else - tprintf("{ %d }", p.__sched_priority); + tprintf("{ %d }", p.sched_priority); } return 0; } @@ -2903,7 +2903,7 @@ sys_sched_setparam(struct tcb *tcp) if (umove(tcp, tcp->u_arg[1], &p) < 0) tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]); else - tprintf("%d, { %d }", (int) tcp->u_arg[0], p.__sched_priority); + tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority); } return 0; } |