git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd444e
)
tevent: add a debug message in tevent_common_loop_timer_delay()
author
Stefan Metzmacher
<metze@samba.org>
Fri, 1 Mar 2013 08:25:32 +0000
(09:25 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 1 Mar 2013 19:00:27 +0000
(20:00 +0100)
We should debug a message before and after running the handler.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tevent/tevent_timed.c
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent_timed.c
b/lib/tevent/tevent_timed.c
index f7c39697d9d11ab25e873fd202cc64d64c97b601..d3ec8f5913e2dcc9f42501a0c97526fdd5b7002a 100644
(file)
--- 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