[PATCH 3/4] Use printfd() to print fd embedded in clockid

Masatake YAMATO yamato at redhat.com
Fri Sep 3 20:28:42 UTC 2021


* src/time (printclockname): Use printfd instead of
PRINT_VAL_D.

Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
 src/time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/time.c b/src/time.c
index f4a6a7539..31b1b3cc6 100644
--- a/src/time.c
+++ b/src/time.c
@@ -248,7 +248,7 @@ printclockname(struct tcb *const tcp, int clockid)
 
 		if ((clockid & CLOCKFD_MASK) == CLOCKFD) {
 			tprints_arg_begin("FD_TO_CLOCKID");
-			PRINT_VAL_D(CLOCKID_TO_FD(clockid));
+			printfd(tcp, CLOCKID_TO_FD(clockid));
 		} else {
 			tprints_arg_begin(CPUCLOCK_PERTHREAD(clockid) ?
 					  "MAKE_THREAD_CPUCLOCK" :
-- 
2.31.1



More information about the Strace-devel mailing list