summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_timed.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-03-01 09:25:32 +0100
committerJeremy Allison <jra@samba.org>2013-03-01 12:01:46 -0800
commite5ae80378af00c5c0158413bd1f1a8aca27fab04 (patch)
tree8c261dc509d85800f7c770487ddd124c56a19309 /lib/tevent/tevent_timed.c
parent3ed0f7d9924b6f70c56b98adb7c98032a255fc55 (diff)
downloadsamba-e5ae80378af00c5c0158413bd1f1a8aca27fab04.tar.gz
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 <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/tevent/tevent_timed.c')
-rw-r--r--lib/tevent/tevent_timed.c4
1 files changed, 4 insertions, 0 deletions
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