Peeple TLS support for updates

PUBLISHED_FROM=1abdacaece6dc63b6148c605c4c2cc41c3cc4ac6
This commit is contained in:
Deomid Ryabkov 2015-12-14 18:34:50 +02:00 committed by Marko Mikulicic
parent 17802735d7
commit 1e53ec47a9

View File

@ -300,8 +300,6 @@ enum cs_log_level {
_LL_MAX = 5, _LL_MAX = 5,
}; };
#ifndef CS_NDEBUG
extern enum cs_log_level s_cs_log_level; extern enum cs_log_level s_cs_log_level;
void cs_log_set_level(enum cs_log_level level); void cs_log_set_level(enum cs_log_level level);
@ -313,6 +311,8 @@ void cs_log_printf(const char *fmt, ...);
cs_log_printf x; \ cs_log_printf x; \
} }
#ifndef CS_NDEBUG
#define DBG(x) \ #define DBG(x) \
if (s_cs_log_level >= LL_VERBOSE_DEBUG) { \ if (s_cs_log_level >= LL_VERBOSE_DEBUG) { \
fprintf(stderr, "%-20s ", __func__); \ fprintf(stderr, "%-20s ", __func__); \
@ -321,9 +321,6 @@ void cs_log_printf(const char *fmt, ...);
#else /* NDEBUG */ #else /* NDEBUG */
#define cs_log_set_level(l)
#define LOG(l, x)
#define DBG(x) #define DBG(x)
#endif #endif