From c981b8c28a39d278d441fc964dd22650459b0623 Mon Sep 17 00:00:00 2001 From: gardners Date: Thu, 3 May 2012 17:04:20 +0930 Subject: [PATCH] further monitor client debuggin improvements --- monitor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index 00c0c2f3..1c3529f0 100644 --- a/monitor.c +++ b/monitor.c @@ -122,9 +122,8 @@ int monitor_get_fds(struct pollfd *fds,int *fdcount,int fdmax) if (monitor_named_socket>-1) { if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO)) { - fprintf(stderr, - "Monitor named unix domain socket is poll() slot #%d (fd %d)\n", - *fdcount,monitor_named_socket); + WHYF("Monitor named unix domain socket is poll() slot #%d (fd %d)\n", + *fdcount,monitor_named_socket); } fds[*fdcount].fd=monitor_named_socket; fds[*fdcount].events=POLLIN; @@ -132,12 +131,13 @@ int monitor_get_fds(struct pollfd *fds,int *fdcount,int fdmax) } int i; + if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO)) + WHYF("looking at %d monitor clients",monitor_socket_count); for(i=0;i=fdmax) return -1; if (debug&(DEBUG_IO|DEBUG_VERBOSE_IO)) { - fprintf(stderr, - "Monitor named unix domain client socket is poll() slot #%d (fd %d)\n", - *fdcount,monitor_sockets[i].socket); + WHY("Monitor named unix domain client socket is poll() slot #%d (fd %d)\n", + *fdcount,monitor_sockets[i].socket); } fds[*fdcount].fd=monitor_sockets[i].socket; fds[*fdcount].events=POLLIN;