From 2745e2ec94e046c763e2b8d5e37117dd3cf00862 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 18 Jan 2009 14:20:06 +1300 Subject: [PATCH] Import formal debug levels from 3.1 This will help get around may of the portage errors found nowdays. --- src/Debug.h | 9 +++++++++ src/defines.h | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Debug.h b/src/Debug.h index 4ce6c6b734..66b5cccf6c 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -53,6 +53,15 @@ #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 { diff --git a/src/defines.h b/src/defines.h index 0e7437dc20..827b3ddfec 100644 --- a/src/defines.h +++ b/src/defines.h @@ -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 -- 2.47.2