]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3406: SSL Log Error in debug
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Nov 2011 09:27:40 +0000 (22:27 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Nov 2011 09:27:40 +0000 (22:27 +1300)
src/Debug.h

index c9f1fce3f01156bfdd355a6cba2f03d028b14a6f..98e51e1e55255b47391e4ca0e7064ee7cc652032 100644 (file)
@@ -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);