From 6c77351c581816214f9758d55193c0da64b5fbf0 Mon Sep 17 00:00:00 2001 From: Alexander Alashkin Date: Fri, 27 Nov 2015 09:22:56 +0100 Subject: [PATCH] Verify settings before apply PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c --- mongoose.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mongoose.h b/mongoose.h index a1674203..eae3ecde 100644 --- a/mongoose.h +++ b/mongoose.h @@ -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 */