summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-04 16:11:43 -0500
committerAdam <Adam@anope.org>2014-02-04 16:11:43 -0500
commit7525d32ac0d85ff1957f61ec653f78702093a8a7 (patch)
treebd03b0e64ee1cbd68c6fb5faca633e8d08c8c1be
parent26fecc0bf2c72b9a0dea09c92ed89f78181f39f6 (diff)
Fix new file descriptor debug log message in socketengine_poll to show the correct events
-rw-r--r--src/socketengines/socketengine_poll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp
index ea7780686..e38e0fac1 100644
--- a/src/socketengines/socketengine_poll.cpp
+++ b/src/socketengines/socketengine_poll.cpp
@@ -137,7 +137,7 @@ bool PollEngine::AddFd(EventHandler* eh, int event_mask)
events[index].fd = fd;
events[index].events = mask_to_poll(event_mask);
- ServerInstance->Logs->Log("SOCKET", DEBUG,"New file descriptor: %d (%d; index %d)", fd, events[fd].events, index);
+ ServerInstance->Logs->Log("SOCKET", DEBUG,"New file descriptor: %d (%d; index %d)", fd, events[index].events, index);
SocketEngine::SetEventMask(eh, event_mask);
CurrentSetSize++;
return true;