r2793 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jun 24 23:29:33 CEST 2008
Author: phk
Date: 2008-06-24 23:29:32 +0200 (Tue, 24 Jun 2008)
New Revision: 2793
Modified:
trunk/varnish-cache/bin/varnishd/mgt_event.c
Log:
Make the debug element conditional on DEBUG macro being defined.
Modified: trunk/varnish-cache/bin/varnishd/mgt_event.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_event.c 2008-06-24 18:12:02 UTC (rev 2792)
+++ trunk/varnish-cache/bin/varnishd/mgt_event.c 2008-06-24 21:29:32 UTC (rev 2793)
@@ -45,6 +45,8 @@
#include "miniobj.h"
#include "binary_heap.h"
+#undef DEBUG_EVENTS
+
/* INFTIM indicates an infinite timeout for poll(2) */
#ifndef INFTIM
#define INFTIM -1
@@ -72,13 +74,13 @@
unsigned char disturbed;
unsigned psig;
pthread_t thread;
+#ifdef DEBUG_EVENTS
FILE *debug;
+#endif
};
/*--------------------------------------------------------------------*/
-#undef DEBUG_EVENTS
-
#ifdef DEBUG_EVENTS
#define DBG(evb, ...) do { \
if ((evb)->debug != NULL) \
More information about the varnish-commit
mailing list