dbus-mainloop.c: undeclared variable n_fds if define MAINLOOP_SPEW.
authorVasiliy Balyasnyy <v.balyasnyy@samsung.com>
Mon, 16 Sep 2013 11:14:33 +0000 (15:14 +0400)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 16 Sep 2013 13:55:10 +0000 (14:55 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69410
Reviewed-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-mainloop.c

index 8b4da16..7ff9dc2 100644 (file)
@@ -654,7 +654,7 @@ _dbus_loop_iterate (DBusLoop     *loop,
     timeout = MIN (timeout, _dbus_get_oom_wait ());
 
 #if MAINLOOP_SPEW
-  _dbus_verbose ("  polling on %d descriptors timeout %ld\n", n_fds, timeout);
+  _dbus_verbose ("  polling on %d descriptors timeout %ld\n", _DBUS_N_ELEMENTS (ready_fds), timeout);
 #endif
 
   n_ready = _dbus_socket_set_poll (loop->socket_set, ready_fds,