From: wessels <> Date: Wed, 5 May 1999 01:26:45 +0000 (+0000) Subject: add FD to debugging message X-Git-Tag: SQUID_3_0_PRE1~2224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8028f09a271da41ff3d8b4ae6555e050677a4f0;p=thirdparty%2Fsquid.git add FD to debugging message --- diff --git a/src/comm_select.cc b/src/comm_select.cc index 1ae600e6d9..c3177a3f7b 100644 --- a/src/comm_select.cc +++ b/src/comm_select.cc @@ -1,6 +1,6 @@ /* - * $Id: comm_select.cc,v 1.33 1999/05/04 19:22:24 wessels Exp $ + * $Id: comm_select.cc,v 1.34 1999/05/04 19:26:45 wessels Exp $ * * DEBUG: section 5 Socket Functions * @@ -214,14 +214,16 @@ comm_check_incoming_poll_handlers(int nfds, int *fds) fd_table[fd].read_handler = NULL; hdl(fd, &incame); } else - debug(5, 1) ("comm_poll_incoming: NULL read handler\n"); + debug(5, 1) ("comm_poll_incoming: FD %d NULL read handler\n", + fd); } if (revents & (POLLWRNORM | POLLOUT | POLLHUP | POLLERR)) { if ((hdl = fd_table[fd].write_handler)) { fd_table[fd].write_handler = NULL; hdl(fd, &incame); } else - debug(5, 1) ("comm_poll_incoming: NULL write handler\n"); + debug(5, 1) ("comm_poll_incoming: FD %d NULL write_handler\n", + fd); } } return incame; @@ -489,7 +491,8 @@ comm_check_incoming_select_handlers(int nfds, int *fds) commUpdateReadBits(fd, NULL); hdl(fd, &incame); } else { - debug(5, 1) ("comm_select_incoming: NULL read handler\n"); + debug(5, 1) ("comm_select_incoming: FD %d NULL read handler\n", + fd); } } if (FD_ISSET(fd, &write_mask)) { @@ -498,7 +501,8 @@ comm_check_incoming_select_handlers(int nfds, int *fds) commUpdateWriteBits(fd, NULL); hdl(fd, &incame); } else { - debug(5, 1) ("comm_select_incoming: NULL write handler\n"); + debug(5, 1) ("comm_select_incoming: FD %d NULL write handler\n", + fd); } } }