Commit 6c77351c authored by Alexander Alashkin's avatar Alexander Alashkin Committed by Sergey Lyubka

Verify settings before apply

    PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c
parent 7c4cda62
...@@ -281,9 +281,10 @@ enum cs_log_level { ...@@ -281,9 +281,10 @@ enum cs_log_level {
LL_WARN = 1, LL_WARN = 1,
LL_INFO = 2, LL_INFO = 2,
LL_DEBUG = 3, LL_DEBUG = 3,
LL_VERBOSE_DEBUG = 4,
_LL_MIN = -2, _LL_MIN = -2,
_LL_MAX = 4, _LL_MAX = 5,
}; };
#ifndef CS_NDEBUG #ifndef CS_NDEBUG
...@@ -299,10 +300,10 @@ void cs_log_printf(const char *fmt, ...); ...@@ -299,10 +300,10 @@ void cs_log_printf(const char *fmt, ...);
cs_log_printf x; \ cs_log_printf x; \
} }
#define DBG(x) \ #define DBG(x) \
if (s_cs_log_level >= LL_DEBUG) { \ if (s_cs_log_level >= LL_VERBOSE_DEBUG) { \
fprintf(stderr, "%-20s ", __func__); \ fprintf(stderr, "%-20s ", __func__); \
cs_log_printf x; \ cs_log_printf x; \
} }
#else /* NDEBUG */ #else /* NDEBUG */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment