+static void
+printpidfd(struct tcb *tcp, pid_t pid, int fd)
+{
+ /*
+ * XXX We want to use printfd here, but we should figure out which
+ * process in strace's PID NS is referred to first.
+ */
+ tprintf("%d", fd);
+}
+
+#define PRINT_FIELD_PIDFD(prefix_, where_, field_, tcp_, pid_) \
+ do { \
+ STRACE_PRINTF("%s%s=", (prefix_), #field_); \
+ printpidfd((tcp_), (pid_), (where_).field_); \
+ } while (0)
+