From 3c86af52c2a3e9352a88e969392575e55c3b6f74 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Wed, 10 Feb 2021 09:01:51 +0000 Subject: Convert all but 2 remaining uses of xassert(false) to BUG("...") --- fdm.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'fdm.c') diff --git a/fdm.c b/fdm.c index ef956450..34d0fbff 100644 --- a/fdm.c +++ b/fdm.c @@ -105,16 +105,12 @@ fdm_add(struct fdm *fdm, int fd, int events, fdm_handler_t handler, void *data) #if defined(_DEBUG) int flags = fcntl(fd, F_GETFL); if (!(flags & O_NONBLOCK)) { - LOG_ERR("FD=%d is in blocking mode", fd); - xassert(false); - return false; + BUG("FD=%d is in blocking mode", fd); } tll_foreach(fdm->fds, it) { if (it->item->fd == fd) { - LOG_ERR("FD=%d already registered", fd); - xassert(false); - return false; + BUG("FD=%d already registered", fd); } } #endif -- cgit v1.3