From 075e5be9fbee6022e640ffd759b2d500d29bf5cd Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 23 Jun 2025 13:44:59 +0900 Subject: Fix debug output of posix-io.c. * src/posix-io.c (_gpgme_io_select_poll): Emit the file descriptor information just like _gpgme_io_select_select. -- Signed-off-by: NIIBE Yutaka --- src/posix-io.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/posix-io.c b/src/posix-io.c index cc873626..00b89007 100644 --- a/src/posix-io.c +++ b/src/posix-io.c @@ -771,9 +771,10 @@ _gpgme_io_select_poll (struct io_select_fd_s *fds, size_t nfds, int nonblock) if (fds[i].fd == -1) continue; if ((poll_fds[poll_nfds].revents & (POLLIN|POLLHUP))) - TRACE_ADD1 (dbg_help, "r=%d ", i); + TRACE_ADD2 (dbg_help, "r=%d (%x) ", fds[i].fd, + (int)poll_fds[poll_nfds].revents); if ((poll_fds[poll_nfds].revents & POLLOUT)) - TRACE_ADD1 (dbg_help, "w=%d ", i); + TRACE_ADD1 (dbg_help, "w=%d ", fds[i].fd); poll_nfds++; } TRACE_END (dbg_help, "]"); -- cgit v1.2.3