Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
Make the debug element conditional on DEBUG macro being defined.
Browse files Browse the repository at this point in the history
git-svn-id: http://www.varnish-cache.org/svn/trunk@2793 d4fa192b-c00b-0410-8231-f00ffab90ce4
  • Loading branch information
bsdphk committed Jun 24, 2008
1 parent 7a4d743 commit 6717e2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/varnishd/mgt_event.c
Expand Up @@ -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
Expand Down Expand Up @@ -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) \
Expand Down

0 comments on commit 6717e2d

Please sign in to comment.