}
MPERS_PRINTER_DECL(void, print_timespec,
- struct tcb *tcp, const long addr)
+ struct tcb *const tcp, const kernel_ulong_t addr)
{
timespec_t t;
}
MPERS_PRINTER_DECL(const char *, sprint_timespec,
- struct tcb *tcp, const long addr)
+ struct tcb *const tcp, const kernel_ulong_t addr)
{
timespec_t t;
static char buf[sizeof(timespec_fmt) + 3 * sizeof(t)];
strcpy(buf, "NULL");
} else if (!verbose(tcp) || (exiting(tcp) && syserror(tcp)) ||
umove(tcp, addr, &t)) {
- snprintf(buf, sizeof(buf), "%#lx", addr);
+ snprintf(buf, sizeof(buf), "%#" PRI_klx, addr);
} else {
snprintf(buf, sizeof(buf), timespec_fmt,
(intmax_t) t.tv_sec, (intmax_t) t.tv_nsec);
}
MPERS_PRINTER_DECL(void, print_timespec_utime_pair,
- struct tcb *tcp, const long addr)
+ struct tcb *const tcp, const kernel_ulong_t addr)
{
timespec_t t[2];
}
MPERS_PRINTER_DECL(void, print_itimerspec,
- struct tcb *tcp, const long addr)
+ struct tcb *const tcp, const kernel_ulong_t addr)
{
timespec_t t[2];