Fix: poll: show the correct number of fds
[lttng-tools.git] / src / bin / lttng-sessiond / ht-cleanup.c
index 373c913dccae1bbb484fefc8e518b9c3821ef255..e5a291609b2c21963d172d3615a36889f8d4c891 100644 (file)
@@ -66,14 +66,15 @@ void *thread_ht_cleanup(void *data)
        while (1) {
                int handled_event;
 
-               DBG3("[ht-thread] Polling on %d fds.",
-                       LTTNG_POLL_GETNB(&events));
+               DBG3("[ht-thread] Polling.");
 
                /* Inifinite blocking call, waiting for transmission */
 restart:
                handled_event = 0;
                health_poll_entry();
                ret = lttng_poll_wait(&events, -1);
+               DBG3("[ht-thread] Returning from poll on %d fds.",
+                       LTTNG_POLL_GETNB(&events));
                health_poll_exit();
                if (ret < 0) {
                        /*
This page took 0.025752 seconds and 5 git commands to generate.