Commit f387f85e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make the debug element conditional on DEBUG macro being defined.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2793 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 07d2c391
......@@ -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 @@ struct evbase {
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) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment