From: Stefan Metzmacher Date: Fri, 1 Mar 2013 08:25:32 +0000 (+0100) Subject: tevent: add a debug message in tevent_common_loop_timer_delay() X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=4356053fc62c6b9a6a2834732fb3f5d6e57cff7c;p=metze%2Fsamba%2Fwip.git tevent: add a debug message in tevent_common_loop_timer_delay() We should debug a message before and after running the handler. Signed-off-by: Stefan Metzmacher --- diff --git a/lib/tevent/tevent_timed.c b/lib/tevent/tevent_timed.c index f7c39697d9d1..d3ec8f5913e2 100644 --- a/lib/tevent/tevent_timed.c +++ b/lib/tevent/tevent_timed.c @@ -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