]> granicus.if.org Git - strace/blobdiff - getrandom.c
Add a enum for decoding to tprint_iov() and tprint_iov_upto()
[strace] / getrandom.c
index 068b2e6e49b360436a5c2e5878152a03b0badf51..c82b3b7f8be05d478b96f51c4a3331a72f4eddd5 100644 (file)
@@ -1,12 +1,11 @@
 #include "defs.h"
 #include "xlat/getrandom_flags.h"
 
-int
-sys_getrandom(struct tcb *tcp)
+SYS_FUNC(getrandom)
 {
        if (exiting(tcp)) {
                if (syserror(tcp))
-                       tprintf("%#lx", tcp->u_arg[0]);
+                       printaddr(tcp->u_arg[0]);
                else
                        printstr(tcp, tcp->u_arg[0], tcp->u_rval);
                tprintf(", %lu, ", tcp->u_arg[1]);