From: Amos Jeffries Date: Thu, 3 Nov 2011 09:27:40 +0000 (+1300) Subject: Bug 3406: SSL Log Error in debug X-Git-Tag: BumpSslServerFirst.take01~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c87d96a00ae5e6f7dd0928f33c2b55f45b985dc;p=thirdparty%2Fsquid.git Bug 3406: SSL Log Error in debug --- diff --git a/src/Debug.h b/src/Debug.h index c9f1fce3f0..98e51e1e55 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -137,8 +137,8 @@ inline std::ostream& operator <<(std::ostream &os, const uint8_t d) } /* Legacy debug style. Still used in some places. needs to die... */ -#define do_debug(SECTION, LEVEL) ((Debug::level = (LEVEL)) > Debug::Levels[SECTION]) -#define old_debug(SECTION, LEVEL) if( (Debug::level=(LEVEL)) <= Debug::Levels[SECTION] ) _db_print +#define do_debug(SECTION, LEVEL) ((Debug::level = (LEVEL)) <= Debug::Levels[SECTION]) +#define old_debug(SECTION, LEVEL) if do_debug((SECTION), (LEVEL)) _db_print /* Legacy debug function definitions */ extern void _db_init(const char *logfile, const char *options);