]> granicus.if.org Git - strace/blobdiff - getcwd.c
xattr: change address argument type from unsigned long to kernel_ureg_t
[strace] / getcwd.c
index 1b97448514a565613af7a2bdd427170b753e0f23..329762397ede99a1231d82fff09d889743625427 100644 (file)
--- a/getcwd.c
+++ b/getcwd.c
@@ -1,11 +1,10 @@
 #include "defs.h"
 
-int
-sys_getcwd(struct tcb *tcp)
+SYS_FUNC(getcwd)
 {
        if (exiting(tcp)) {
                if (syserror(tcp))
-                       tprintf("%#lx", tcp->u_arg[0]);
+                       printaddr(tcp->u_arg[0]);
                else
                        printpathn(tcp, tcp->u_arg[0], tcp->u_rval - 1);
                tprintf(", %lu", tcp->u_arg[1]);