int dlevel, i;
dlevel = atoi(argstr);
- if (dlevel < -2 || dlevel > 3) {
+ if (dlevel < MIN_DEBUGLVL || dlevel > MAX_DEBUGLVL) {
sprintf(rmsg, "Error, debug level must be between -2 and 4\n");
return CFG_ERROR;
}
}
if (!cfg_has_log[SEVERITY_ERR]) {
/* no logging at all defined ? fall back to default */
- char def[2] = "0";
+ char def[10] = DEF_DEBUGLVL;
parse_cfg_debug(def, *rcfg, rmsg);
}
}
#define DEF_WILL_AUTO true
#define DEF_ALLOW_NO_INTS true
#define DEF_TOS 16
-#define DEF_DEBUGLVL 1
+#define DEF_DEBUGLVL "0"
#define DEF_IPC_CONNECTIONS 0
#define DEF_USE_HYST false
#define DEF_FIB_METRIC FIBM_FLAT
#define MIN_POLLRATE 0.01
#define MAX_NICCHGPOLLRT 100.0
#define MIN_NICCHGPOLLRT 1.0
-#define MAX_DEBUGLVL 9
-#define MIN_DEBUGLVL 0
+#define MAX_DEBUGLVL 3
+#define MIN_DEBUGLVL -2
#define MAX_TOS 16
#define MAX_WILLINGNESS 7
#define MIN_WILLINGNESS 0