summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 12:39:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 12:39:39 +0000
commitb886782d50405274b9ede463bbd192d4443a897f (patch)
tree629afeac926668a9f0f6c076a30e612452a93ebc /src/inspircd.cpp
parentf9d905204085d8ba66b9f136979a6be959b63e42 (diff)
Extra debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4699 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index bcd1614d3..a34f438f9 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -862,15 +862,17 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
}
stats->statsAccept++;
#ifdef IPV6
+ log(DEBUG,"Add ipv6 client");
AddClient(incomingSockfd, in_port, false, client.sin6_addr);
#else
+ log(DEBUG,"Add ipv4 client");
AddClient(incomingSockfd, in_port, false, client.sin_addr);
#endif
- log(DEBUG,"Adding client on port %lu fd=%lu",(unsigned long)in_port,(unsigned long)incomingSockfd);
+ log(DEBUG,"Adding client on port %d fd=%d",in_port,incomingSockfd);
}
else
{
- log(DEBUG,"Accept failed on fd %lu: %s",(unsigned long)incomingSockfd,strerror(errno));
+ log(DEBUG,"Accept failed on fd %d: %s",incomingSockfd,strerror(errno));
shutdown(incomingSockfd,2);
close(incomingSockfd);
stats->statsRefused++;