mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Verify settings before apply
PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c
This commit is contained in:
1 parent
7c4cda622f
commit
6c77351c58
1 file changed
+6
-5
+6
-5
@@ -281,9 +281,10 @@ enum cs_log_level {
|
||||
LL_WARN = 1,
|
||||
LL_INFO = 2,
|
||||
LL_DEBUG = 3,
|
||||
LL_VERBOSE_DEBUG = 4,
|
||||
|
||||
_LL_MIN = -2,
|
||||
_LL_MAX = 4,
|
||||
_LL_MAX = 5,
|
||||
};
|
||||
|
||||
#ifndef CS_NDEBUG
|
||||
@@ -299,10 +300,10 @@ void cs_log_printf(const char *fmt, ...);
|
||||
cs_log_printf x; \
|
||||
}
|
||||
|
||||
#define DBG(x) \
|
||||
if (s_cs_log_level >= LL_DEBUG) { \
|
||||
fprintf(stderr, "%-20s ", __func__); \
|
||||
cs_log_printf x; \
|
||||
#define DBG(x) \
|
||||
if (s_cs_log_level >= LL_VERBOSE_DEBUG) { \
|
||||
fprintf(stderr, "%-20s ", __func__); \
|
||||
cs_log_printf x; \
|
||||
}
|
||||
|
||||
#else /* NDEBUG */
|
||||
|
||||
Reference in new issue
Block a user