diff options
author | NIIBE Yutaka <[email protected]> | 2025-06-23 04:44:59 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2025-06-23 04:44:59 +0000 |
commit | 075e5be9fbee6022e640ffd759b2d500d29bf5cd (patch) | |
tree | e33738ddab4f35edcf0409698491edf3d3b28936 | |
parent | posix: Clean up get_max_fds implementation. (diff) | |
download | gpgme-075e5be9fbee6022e640ffd759b2d500d29bf5cd.tar.gz gpgme-075e5be9fbee6022e640ffd759b2d500d29bf5cd.zip |
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 <[email protected]>
-rw-r--r-- | src/posix-io.c | 5 |
1 files 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, "]"); |