From e5ae80378af00c5c0158413bd1f1a8aca27fab04 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 1 Mar 2013 09:25:32 +0100 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison --- lib/tevent/tevent_timed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tevent/tevent_timed.c b/lib/tevent/tevent_timed.c index f7c39697d9d..d3ec8f5913e 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 -- 2.11.4.GIT