]> granicus.if.org Git - strace/blobdiff - print_sigevent.c
Remove HAVE_STRUCT_TCB_EXT_ARG, ext_arg, and u_lrval
[strace] / print_sigevent.c
index 1c2b17486b2073d86d36c43f8113b3e88a1bac68..cfdbc087cc97671f7793028e38a47623e5491933 100644 (file)
@@ -35,7 +35,8 @@
 #include <signal.h>
 #include "xlat/sigev_value.h"
 
-MPERS_PRINTER_DECL(void, print_sigevent, struct tcb *tcp, const long addr)
+MPERS_PRINTER_DECL(void, print_sigevent,
+                  struct tcb *const tcp, const kernel_ulong_t addr)
 {
        struct_sigevent sev;
 
@@ -43,10 +44,12 @@ MPERS_PRINTER_DECL(void, print_sigevent, struct tcb *tcp, const long addr)
                return;
 
        tprints("{");
-       if (sev.sigev_value.sival_ptr)
-               tprintf("sigev_value={int=%d, ptr=%#lx}, ",
-                       sev.sigev_value.sival_int,
-                       (unsigned long) sev.sigev_value.sival_ptr);
+       if (sev.sigev_value.sival_ptr) {
+               tprintf("sigev_value={sival_int=%d, sival_ptr=",
+                       sev.sigev_value.sival_int);
+               printaddr(sev.sigev_value.sival_ptr);
+               tprints("}, ");
+       }
 
        tprints("sigev_signo=");
        switch (sev.sigev_notify) {