summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-06-21 15:12:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:30 -0500
commit851224a92463f5a556864a2a7ed648a8019e84e8 (patch)
treece87ca8fc4762387f7328479c1a67ffc7c967447
parentd7c9bbccfde0d4fdffece2272a23832ba0ae3a80 (diff)
downloadsamba-851224a92463f5a556864a2a7ed648a8019e84e8.tar.gz
samba-851224a92463f5a556864a2a7ed648a8019e84e8.tar.bz2
samba-851224a92463f5a556864a2a7ed648a8019e84e8.zip
r23569: Also dump fd_event in dump_event_list().
Guenther (This used to be commit 27fdf995d13611ebc9e57895f886c184e9027c4d)
-rw-r--r--source3/lib/events.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 09915a2dcd..314fa2d538 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -395,6 +395,7 @@ int cancel_named_event(struct event_context *event_ctx,
void dump_event_list(struct event_context *event_ctx)
{
struct timed_event *te;
+ struct fd_event *fe;
struct timeval evt, now;
if (!event_ctx) {
@@ -409,9 +410,17 @@ void dump_event_list(struct event_context *event_ctx)
evt = timeval_until(&now, &te->when);
- DEBUGADD(10,("Event \"%s\" %lx handled in %d seconds\n",
+ DEBUGADD(10,("Timed Event \"%s\" %lx handled in %d seconds\n",
te->event_name,
(unsigned long)te,
(int)evt.tv_sec));
}
+
+ for (fe = event_ctx->fd_events; fe; fe = fe->next) {
+
+ DEBUGADD(10,("FD Event %d %lx, flags: 0x%04x\n",
+ fe->fd,
+ (unsigned long)fe,
+ fe->flags));
+ }
}