Fold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR

This commit is contained in:
Todd C. Miller
2011-11-07 16:33:49 -05:00
parent d0eb3ae6a0
commit 3ee9cef0da
6 changed files with 26 additions and 28 deletions

View File

@@ -31,14 +31,13 @@
* Note: order must match sudo_debug_priorities[]
*/
#define SUDO_DEBUG_CRIT 1 /* critical errors */
#define SUDO_DEBUG_SYSERR 2 /* system errors */
#define SUDO_DEBUG_PROGERR 3 /* program errors */
#define SUDO_DEBUG_WARN 4 /* non-fatal warnings */
#define SUDO_DEBUG_NOTICE 5 /* non-error condition notices */
#define SUDO_DEBUG_DIAG 6 /* diagnostic messages */
#define SUDO_DEBUG_INFO 7 /* informational message */
#define SUDO_DEBUG_TRACE 8 /* log function enter/exit */
#define SUDO_DEBUG_DEBUG 9 /* very verbose debugging */
#define SUDO_DEBUG_ERROR 2 /* non-critical errors */
#define SUDO_DEBUG_WARN 3 /* non-fatal warnings */
#define SUDO_DEBUG_NOTICE 4 /* non-error condition notices */
#define SUDO_DEBUG_DIAG 5 /* diagnostic messages */
#define SUDO_DEBUG_INFO 6 /* informational message */
#define SUDO_DEBUG_TRACE 7 /* log function enter/exit */
#define SUDO_DEBUG_DEBUG 8 /* very verbose debugging */
/*
* Sudo debug subsystems.