From: Amos Jeffries Date: Tue, 19 Feb 2013 00:26:59 +0000 (+1300) Subject: Revert rev.12698 X-Git-Tag: SQUID_3_4_0_1~260 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=299b2ed1ec4a33a7704e80fdad1d1f754f76dd39;p=thirdparty%2Fsquid.git Revert rev.12698 --- diff --git a/src/Debug.h b/src/Debug.h index eebb2b3040..18c01ca491 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -107,13 +107,12 @@ const char * SkipBuildPrefix(const char* path); /* Debug stream */ #define debugs(SECTION, LEVEL, CONTENT) \ do { \ - if ((LEVEL) <= Debug::Levels[SECTION]) { \ + if ((Debug::level = (LEVEL)) <= Debug::Levels[SECTION]) { \ Debug::sectionLevel = Debug::Levels[SECTION]; \ std::ostream &_dbo=Debug::getDebugOut(); \ - if ((LEVEL) > DBG_IMPORTANT) \ + if (Debug::level > DBG_IMPORTANT) \ _dbo << SkipBuildPrefix(__FILE__)<<"("<<__LINE__<<") "<<__FUNCTION__<<": "; \ _dbo << CONTENT; \ - Debug::level = (LEVEL); \ Debug::finishDebug(); \ } \ } while (/*CONSTCOND*/ 0)