Verify settings before apply

PUBLISHED_FROM=ca7b6a9814b88b45d893d8e1386faded27305e9c
This commit is contained in:
Alexander Alashkin authored and Sergey Lyubka committed 2015-11-30 12:27:58 +00:00
1 parent 7c4cda622f
commit 6c77351c58
1 file changed
+6 -5
+6 -5
View File
@@ -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 */