]> granicus.if.org Git - strace/blobdiff - print_timespec.c
tests: use fixed socket address in net-y-unix.test
[strace] / print_timespec.c
index e005ca993bccc7029b34c8fedbe765fd3111701b..76c70edbe0ab271d2af4454b96c66e31285203a9 100644 (file)
@@ -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];