Exclude MXS_DEBUG in release builds

Now, MXS_DEBUG turns into a nop in release builds.
This commit is contained in:
Johan Wikman
2016-10-24 13:41:00 +03:00
parent 1a2e0ba3ee
commit 3915b4e7c7
8 changed files with 23 additions and 26 deletions

View File

@ -1044,9 +1044,8 @@ process_pollq(int thread_id)
if (ev & EPOLLHUP)
{
int eno = 0;
eno = gw_getsockerrno(dcb->fd);
char errbuf[MXS_STRERROR_BUFLEN];
ss_debug(int eno = gw_getsockerrno(dcb->fd));
ss_debug(char errbuf[MXS_STRERROR_BUFLEN]);
MXS_DEBUG("%lu [poll_waitevents] "
"EPOLLHUP on dcb %p, fd %d. "
"Errno %d, %s.",
@ -1080,9 +1079,8 @@ process_pollq(int thread_id)
#ifdef EPOLLRDHUP
if (ev & EPOLLRDHUP)
{
int eno = 0;
eno = gw_getsockerrno(dcb->fd);
char errbuf[MXS_STRERROR_BUFLEN];
ss_debug(int eno = gw_getsockerrno(dcb->fd));
ss_debug(char errbuf[MXS_STRERROR_BUFLEN]);
MXS_DEBUG("%lu [poll_waitevents] "
"EPOLLRDHUP on dcb %p, fd %d. "
"Errno %d, %s.",