SYS_FUNC(getitimer)
{
if (entering(tcp)) {
- printxval(itimer_which, tcp->u_arg[0], "ITIMER_???");
+ printxval_index(itimer_which, (unsigned int) tcp->u_arg[0],
+ "ITIMER_???");
tprints(", ");
} else {
print_itimerval(tcp, tcp->u_arg[1]);
SYS_FUNC(osf_getitimer)
{
if (entering(tcp)) {
- printxval(itimer_which, tcp->u_arg[0], "ITIMER_???");
+ printxval_index(itimer_which, (unsigned int) tcp->u_arg[0],
+ "ITIMER_???");
tprints(", ");
} else {
print_itimerval32(tcp, tcp->u_arg[1]);
SYS_FUNC(setitimer)
{
if (entering(tcp)) {
- printxval(itimer_which, tcp->u_arg[0], "ITIMER_???");
+ printxval_index(itimer_which, (unsigned int) tcp->u_arg[0],
+ "ITIMER_???");
tprints(", ");
print_itimerval(tcp, tcp->u_arg[1]);
tprints(", ");
SYS_FUNC(osf_setitimer)
{
if (entering(tcp)) {
- printxval(itimer_which, tcp->u_arg[0], "ITIMER_???");
+ printxval_index(itimer_which, (unsigned int) tcp->u_arg[0],
+ "ITIMER_???");
tprints(", ");
print_itimerval32(tcp, tcp->u_arg[1]);
tprints(", ");
{
if (print_timex(tcp, addr))
return 0;
- tcp->auxstr = xlookup(adjtimex_state, (kernel_ulong_t) tcp->u_rval);
+ tcp->auxstr = xlat_idx(adjtimex_state, ARRAY_SIZE(adjtimex_state) - 1,
+ (kernel_ulong_t) tcp->u_rval);
return RVAL_STR;
}
if ((clockid & CLOCKFD_MASK) == CLOCKFD)
tprintf("FD_TO_CLOCKID(%d)", CLOCKID_TO_FD(clockid));
else {
- if (CPUCLOCK_PERTHREAD(clockid))
- tprintf("MAKE_THREAD_CPUCLOCK(%d,", CPUCLOCK_PID(clockid));
- else
- tprintf("MAKE_PROCESS_CPUCLOCK(%d,", CPUCLOCK_PID(clockid));
- printxval(cpuclocknames, clockid & CLOCKFD_MASK, "CPUCLOCK_???");
+ tprintf("%s(%d,",
+ CPUCLOCK_PERTHREAD(clockid) ?
+ "MAKE_THREAD_CPUCLOCK" :
+ "MAKE_PROCESS_CPUCLOCK",
+ CPUCLOCK_PID(clockid));
+ printxval_index(cpuclocknames,
+ (unsigned int) clockid & CLOCKFD_MASK,
+ "CPUCLOCK_???");
tprints(")");
}
} else
#endif
- printxval(clocknames, clockid, "CLOCK_???");
+ printxval_index(clocknames, clockid, "CLOCK_???");
}
SYS_FUNC(clock_settime)