tevent: add a debug message in tevent_common_loop_timer_delay()
authorStefan Metzmacher <metze@samba.org>
Fri, 1 Mar 2013 08:25:32 +0000 (09:25 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Mar 2013 09:12:02 +0000 (10:12 +0100)
We should debug a message before and after running the handler.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tevent/tevent_timed.c

index f7c39697d9d11ab25e873fd202cc64d64c97b601..d3ec8f5913e2dcc9f42501a0c97526fdd5b7002a 100644 (file)
@@ -244,6 +244,10 @@ struct timeval tevent_common_loop_timer_delay(struct tevent_context *ev)
         * handler we don't want to come across this event again -- vl */
        DLIST_REMOVE(ev->timer_events, te);
 
+       tevent_debug(te->event_ctx, TEVENT_DEBUG_TRACE,
+                    "Running timer event %p \"%s\"\n",
+                    te, te->handler_name);
+
        /*
         * If the timed event was registered for a zero current_time,
         * then we pass a zero timeval here too! To avoid the