common: add debug printout for epoll. v0.0.63
authorKrisztian Litkey <kli@iki.fi>
Thu, 30 Oct 2014 23:59:10 +0000 (01:59 +0200)
committerKrisztian Litkey <kli@iki.fi>
Fri, 31 Oct 2014 00:19:34 +0000 (02:19 +0200)
src/common/mainloop.c

index b54c5e9..8f225bd 100644 (file)
@@ -1815,6 +1815,9 @@ int mrp_mainloop_poll(mrp_mainloop_t *ml, int may_block)
 
     if (ml->nevent > 0) {
         if (ml->super_ops == NULL || ml->super_ops->poll_io == NULL) {
+            mrp_debug("polling %d descriptors with timeout %d",
+                      ml->nevent, timeout);
+
             n = epoll_wait(ml->epollfd, ml->events, ml->nevent, timeout);
 
             if (n < 0 && errno == EINTR)