From 63db3daafe05e65794a00968a516d7c4ada0556a Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 14 Jul 2005 09:20:39 +0000 Subject: [PATCH] Cleaned up some log messages. --- src/ngircd/io.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ngircd/io.c b/src/ngircd/io.c index 6b4081c8..1f98af46 100644 --- a/src/ngircd/io.c +++ b/src/ngircd/io.c @@ -12,7 +12,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: io.c,v 1.3 2005/07/12 20:44:13 fw Exp $"; +static char UNUSED id[] = "$Id: io.c,v 1.4 2005/07/14 09:20:39 alex Exp $"; #include #include @@ -115,26 +115,26 @@ io_library_init(unsigned int eventsize) #ifdef IO_USE_EPOLL io_masterfd = epoll_create(ecreate_hint); Log(LOG_INFO, - "io subsystem: using epoll (hint size %d), initial io_event maxfd: %u, io_masterfd %d", + "IO subsystem: epoll (hint size %d, initial maxfd %u, masterfd %d).", ecreate_hint, eventsize, io_masterfd); return io_masterfd >= 0; #endif #ifdef IO_USE_SELECT - Log(LOG_INFO, "io subsystem: using select, initial io_event maxfd: %u", + Log(LOG_INFO, "IO subsystem: select (initial maxfd %u).", eventsize); FD_ZERO(&readers); FD_ZERO(&writers); #ifdef FD_SETSIZE if (Conf_MaxConnections >= FD_SETSIZE) { Log(LOG_WARNING, - "Conf_MaxConnections (%d) exceeds limit (%u), changed Conf_MaxConnections to %u", + "MaxConnections (%d) exceeds limit (%u), changed MaxConnections to %u.", Conf_MaxConnections, FD_SETSIZE, FD_SETSIZE - 1); Conf_MaxConnections = FD_SETSIZE - 1; } #else Log(LOG_WARNING, - "FD_SETSIZE undefined, don't know how many descriptors select() can handle on your platform"); + "FD_SETSIZE undefined, don't know how many descriptors select() can handle on your platform ..."); #endif return true; #endif @@ -142,7 +142,7 @@ io_library_init(unsigned int eventsize) io_masterfd = kqueue(); Log(LOG_INFO, - "io subsystem: using kqueue, initial io_event maxfd: %u, io_masterfd %d", + "IO subsystem: kqueue (initial maxfd %u, masterfd %d)", eventsize, io_masterfd); return io_masterfd >= 0; #endif @@ -529,7 +529,8 @@ io_dispatch_kqueue(struct timeval *tv) assert(newevents); #endif - ret = kevent(io_masterfd, newevents, newevents_len, kev, 100, &ts); + ret = kevent(io_masterfd, newevents, newevents_len, kev, + 100, &ts); if ((newevents_len>0) && ret != -1) array_trunc(&io_evcache); -- 2.39.2