]> granicus.if.org Git - strace/blobdiff - open.c
tests: move F_OFD_SETLK* checks from fcntl64.c to fcntl-common.c
[strace] / open.c
diff --git a/open.c b/open.c
index afa5020c7f70f784818ab67caa32544dde2e91c7..fde21cccd59223c7121ddbbd6734fdcb797aa164 100644 (file)
--- a/open.c
+++ b/open.c
@@ -62,11 +62,11 @@ void
 print_dirfd(struct tcb *tcp, int fd)
 {
        if (fd == AT_FDCWD)
-               tprints("AT_FDCWD, ");
-       else {
+               print_xlat_d(AT_FDCWD);
+       else
                printfd(tcp, fd);
-               tprints(", ");
-       }
+
+       tprints(", ");
 }
 
 /*
@@ -113,7 +113,8 @@ sprint_open_modes(unsigned int flags)
 void
 tprint_open_modes(unsigned int flags)
 {
-       tprints(sprint_open_modes(flags) + sizeof("flags"));
+       print_xlat_ex(flags, sprint_open_modes(flags) + sizeof("flags"),
+                     XLAT_STYLE_DEFAULT);
 }
 
 #ifdef O_TMPFILE