svn commit: samba r23569 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_26/source/lib

gd at samba.org gd at samba.org
Thu Jun 21 15:12:51 GMT 2007


Author: gd
Date: 2007-06-21 15:12:51 +0000 (Thu, 21 Jun 2007)
New Revision: 23569

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23569

Log:
Also dump fd_event in dump_event_list().

Guenther

Modified:
   branches/SAMBA_3_0/source/lib/events.c
   branches/SAMBA_3_0_26/source/lib/events.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/events.c
===================================================================
--- branches/SAMBA_3_0/source/lib/events.c	2007-06-21 14:32:09 UTC (rev 23568)
+++ branches/SAMBA_3_0/source/lib/events.c	2007-06-21 15:12:51 UTC (rev 23569)
@@ -395,6 +395,7 @@
 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 @@
 
 		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));
+	}
 }

Modified: branches/SAMBA_3_0_26/source/lib/events.c
===================================================================
--- branches/SAMBA_3_0_26/source/lib/events.c	2007-06-21 14:32:09 UTC (rev 23568)
+++ branches/SAMBA_3_0_26/source/lib/events.c	2007-06-21 15:12:51 UTC (rev 23569)
@@ -395,6 +395,7 @@
 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 @@
 
 		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));
+	}
 }



More information about the samba-cvs mailing list