X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22b6de6a70900550b5411f14fffc9d48adbbf222..677dc0ed1a3ff68af15f6246d6d0708d5264b07a:/src/unix/epolldispatcher.cpp diff --git a/src/unix/epolldispatcher.cpp b/src/unix/epolldispatcher.cpp index 7557062604..6f36836f0f 100644 --- a/src/unix/epolldispatcher.cpp +++ b/src/unix/epolldispatcher.cpp @@ -41,7 +41,7 @@ // helper: return EPOLLxxx mask corresponding to the given flags (and also log // debugging messages about it) -static uint32_t GetEpollMask(int flags, int fd) +static uint32_t GetEpollMask(int flags, int WXUNUSED_UNLESS_DEBUG(fd)) { uint32_t ep = 0; @@ -82,8 +82,7 @@ wxEpollDispatcher *wxEpollDispatcher::Create() wxLogSysError(_("Failed to create epoll descriptor")); return NULL; } - wxLogTrace(wxEpollDispatcher_Trace, - _T("Epoll fd %d created"), epollDescriptor); + return new wxEpollDispatcher(epollDescriptor); } @@ -116,8 +115,6 @@ bool wxEpollDispatcher::RegisterFD(int fd, wxFDIOHandler* handler, int flags) return false; } - wxLogTrace(wxEpollDispatcher_Trace, - _T("Added fd %d (handler %p) to epoll %d"), fd, handler, m_epollDescriptor); return true; } @@ -137,8 +134,6 @@ bool wxEpollDispatcher::ModifyFD(int fd, wxFDIOHandler* handler, int flags) return false; } - wxLogTrace(wxEpollDispatcher_Trace, - _T("Modified fd %d (handler: %p) on epoll %d"), fd, handler, m_epollDescriptor); return true; } @@ -153,8 +148,7 @@ bool wxEpollDispatcher::UnregisterFD(int fd) wxLogSysError(_("Failed to unregister descriptor %d from epoll descriptor %d"), fd, m_epollDescriptor); } - wxLogTrace(wxEpollDispatcher_Trace, - _T("removed fd %d from %d"), fd, m_epollDescriptor); + return true; }