X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fs_debug.h;h=3359b10f5b2cc9aa0a1b515e5cc9810c159e379e;hb=722c2f8956b8f5933e53e12e23c60a882eca4c24;hp=35e84d0053c97e70a50cebab2e67f125106f5cd3;hpb=2384af4e254c4ee7f343c27a90421d607394c5f6;p=ircu2.10.12-pk.git diff --git a/include/s_debug.h b/include/s_debug.h index 35e84d0..3359b10 100644 --- a/include/s_debug.h +++ b/include/s_debug.h @@ -25,23 +25,25 @@ struct StatDesc; * Macro's */ +/** If DEBUGMODE is defined, output the debug message. + * @param x A two-or-more element list containing level, format and arguments. + */ #define Debug(x) debug x -#define LOGFILE LPATH +#define LOGFILE LPATH /**< Path to debug log file. */ /* * defined debugging levels */ -#define DEBUG_FATAL 0 -#define DEBUG_ERROR 1 /* report_error() and other errors that are found */ -#define DEBUG_NOTICE 3 -#define DEBUG_DNS 4 /* used by all DNS related routines - a *lot* */ -#define DEBUG_INFO 5 /* general useful info */ -#define DEBUG_NUM 6 /* numerics */ -#define DEBUG_SEND 7 /* everything that is sent out */ -#define DEBUG_DEBUG 8 /* everything that is received */ -#define DEBUG_MALLOC 9 /* malloc/free calls */ -#define DEBUG_LIST 10 /* debug list use */ -#define DEBUG_ENGINE 11 /* debug event engine; can dump gigabyte logs */ +#define DEBUG_FATAL 0 /**< fatal error */ +#define DEBUG_ERROR 1 /**< report_error() and other errors that are found */ +#define DEBUG_NOTICE 3 /**< somewhat useful, but non-critical, messages */ +#define DEBUG_DNS 4 /**< used by all DNS related routines - a *lot* */ +#define DEBUG_INFO 5 /**< general useful info */ +#define DEBUG_SEND 7 /**< everything that is sent out */ +#define DEBUG_DEBUG 8 /**< everything that is received */ +#define DEBUG_MALLOC 9 /**< malloc/free calls */ +#define DEBUG_LIST 10 /**< debug list use */ +#define DEBUG_ENGINE 11 /**< debug event engine; can dump gigabyte logs */ /* * proto types