From: Eugene Syromyatnikov Date: Sat, 10 Mar 2018 05:56:21 +0000 (+0100) Subject: open: use print_xlat_d in print_dirfd X-Git-Tag: v4.23~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ae5745181fc019ce4760b51d647a525e7b94818;p=strace open: use print_xlat_d in print_dirfd * open.c (print_dirfd): Use print_xlat_d for printing AT_FDCWD named constant. --- diff --git a/open.c b/open.c index afa5020c..b8da2aea 100644 --- 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(", "); } /*