1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 20:45:08 +00:00

Put miscellaneous debug spam behind #ifdefs.

This commit is contained in:
Andreas Kling 2019-03-01 10:51:58 +01:00
parent 1b16a29044
commit 6c2089c59d
4 changed files with 27 additions and 3 deletions

View file

@ -46,14 +46,18 @@ GEventLoop::GEventLoop()
rc = connect(m_event_fd, (const sockaddr*)&address, sizeof(address));
if (rc == 0)
break;
#ifdef GEVENTLOOP_DEBUG
dbgprintf("connect failed: %d, %s\n", errno, strerror(errno));
#endif
sleep(1);
--retries;
}
if (rc < 0) {
ASSERT_NOT_REACHED();
}
#ifdef GEVENTLOOP_DEBUG
dbgprintf("(%u) GEventLoop constructed :)\n", getpid());
#endif
}
GEventLoop::~GEventLoop()