]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Import formal debug levels from 3.1
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Jan 2009 01:20:06 +0000 (14:20 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Jan 2009 01:20:06 +0000 (14:20 +1300)
This will help get around may of the portage errors found nowdays.

src/Debug.h
src/defines.h

index 4ce6c6b734ac5e34ff4979aabc41fa9785eeb290..66b5cccf6c304d755fd8f60466bf686626d19da0 100644 (file)
 #define assert(EX)  ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
 #endif
 
+/* defined debug section limits */
+#define MAX_DEBUG_SECTIONS 100
+
+/* defined names for Debug Levels */
+#define DBG_CRITICAL    0       /**< critical messages always shown when they occur */
+#define DBG_IMPORTANT   1       /**< important messages always shown when their section is being checked */
+/* levels 2-8 are still being discussed amongst the developers */
+#define DBG_DATA        9       /**< output is a large data dump only necessary for advanced debugging */
+
 class Debug
 {
 
index 0e7437dc20876168d290b7125b9ef28718867724..827b3ddfecb9fedea7440eb9afc5bac1f0ad64a8 100644 (file)
@@ -59,7 +59,6 @@
 /* Select types. */
 #define COMM_SELECT_READ   (0x1)
 #define COMM_SELECT_WRITE  (0x2)
-#define MAX_DEBUG_SECTIONS 100
 
 #define COMM_NONBLOCKING       0x01
 #define COMM_NOCLOEXEC         0x02