From 0ae5745181fc019ce4760b51d647a525e7b94818 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sat, 10 Mar 2018 06:56:21 +0100 Subject: [PATCH] open: use print_xlat_d in print_dirfd * open.c (print_dirfd): Use print_xlat_d for printing AT_FDCWD named constant. --- open.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(", "); } /* -- 2.40.0