diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
commit | e84bf9f3ec5a60078c32b272d3d7885c0708c544 (patch) | |
tree | 99fc8f4b4d7bede49e91f27abcdee6fb8c4fe6f4 /src/socketengine_select.cpp | |
parent | d17465716790010b6e3221f9ce49272110276ccf (diff) |
Change to using Instance->Log (InspIRCd::Log) rather than log() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_select.cpp')
-rw-r--r-- | src/socketengine_select.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp index 4f10fa85f..f8a403d05 100644 --- a/src/socketengine_select.cpp +++ b/src/socketengine_select.cpp @@ -25,26 +25,26 @@ SelectEngine::SelectEngine(InspIRCd* Instance) : SocketEngine(Instance) { - log(DEBUG,"SelectEngine::SelectEngine()"); + ServerInstance->Log(DEBUG,"SelectEngine::SelectEngine()"); EngineHandle = 0; CurrentSetSize = 0; } SelectEngine::~SelectEngine() { - log(DEBUG,"SelectEngine::~SelectEngine()"); + ServerInstance->Log(DEBUG,"SelectEngine::~SelectEngine()"); } bool SelectEngine::AddFd(int fd, bool readable, char type) { if ((fd < 0) || (fd > MAX_DESCRIPTORS)) { - log(DEFAULT,"ERROR: FD of %d added above max of %d",fd,MAX_DESCRIPTORS); + ServerInstance->Log(DEFAULT,"ERROR: FD of %d added above max of %d",fd,MAX_DESCRIPTORS); return false; } if (GetRemainingFds() <= 1) { - log(DEFAULT,"ERROR: System out of file descriptors!"); + ServerInstance->Log(DEFAULT,"ERROR: System out of file descriptors!"); return false; } @@ -56,10 +56,10 @@ bool SelectEngine::AddFd(int fd, bool readable, char type) ref[fd] = type; if (readable) { - log(DEBUG,"Set readbit"); + ServerInstance->Log(DEBUG,"Set readbit"); ref[fd] |= X_READBIT; } - log(DEBUG,"Add socket %d",fd); + ServerInstance->Log(DEBUG,"Add socket %d",fd); CurrentSetSize++; return true; @@ -67,7 +67,7 @@ bool SelectEngine::AddFd(int fd, bool readable, char type) bool SelectEngine::DelFd(int fd) { - log(DEBUG,"SelectEngine::DelFd(%d)",fd); + ServerInstance->Log(DEBUG,"SelectEngine::DelFd(%d)",fd); if ((fd < 0) || (fd > MAX_DESCRIPTORS)) return false; @@ -76,7 +76,7 @@ bool SelectEngine::DelFd(int fd) if (t != fds.end()) { fds.erase(t); - log(DEBUG,"Deleted fd %d",fd); + ServerInstance->Log(DEBUG,"Deleted fd %d",fd); } CurrentSetSize--; |