X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=print_timespec.c;h=76c70edbe0ab271d2af4454b96c66e31285203a9;hb=7708f597d9e8ff488ea364e1834b54cb266c43f9;hp=e005ca993bccc7029b34c8fedbe765fd3111701b;hpb=1d5bb61c49a04afe81f6544f8bb1a7c68e34e259;p=strace diff --git a/print_timespec.c b/print_timespec.c index e005ca99..76c70edb 100644 --- a/print_timespec.c +++ b/print_timespec.c @@ -65,7 +65,7 @@ print_timespec_t_utime(const timespec_t *t) } MPERS_PRINTER_DECL(void, print_timespec, - struct tcb *const tcp, const kernel_ureg_t addr) + struct tcb *const tcp, const kernel_ulong_t addr) { timespec_t t; @@ -76,7 +76,7 @@ MPERS_PRINTER_DECL(void, print_timespec, } MPERS_PRINTER_DECL(const char *, sprint_timespec, - struct tcb *const tcp, const kernel_ureg_t addr) + struct tcb *const tcp, const kernel_ulong_t addr) { timespec_t t; static char buf[sizeof(timespec_fmt) + 3 * sizeof(t)]; @@ -85,7 +85,7 @@ MPERS_PRINTER_DECL(const char *, sprint_timespec, strcpy(buf, "NULL"); } else if (!verbose(tcp) || (exiting(tcp) && syserror(tcp)) || umove(tcp, addr, &t)) { - snprintf(buf, sizeof(buf), "%#" PRI_krx, 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); @@ -95,7 +95,7 @@ MPERS_PRINTER_DECL(const char *, sprint_timespec, } MPERS_PRINTER_DECL(void, print_timespec_utime_pair, - struct tcb *const tcp, const kernel_ureg_t addr) + struct tcb *const tcp, const kernel_ulong_t addr) { timespec_t t[2]; @@ -110,7 +110,7 @@ MPERS_PRINTER_DECL(void, print_timespec_utime_pair, } MPERS_PRINTER_DECL(void, print_itimerspec, - struct tcb *const tcp, const kernel_ureg_t addr) + struct tcb *const tcp, const kernel_ulong_t addr) { timespec_t t[2];