Commit 1e53ec47 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Marko Mikulicic

Peeple TLS support for updates

    PUBLISHED_FROM=1abdacaece6dc63b6148c605c4c2cc41c3cc4ac6
parent 17802735
...@@ -300,8 +300,6 @@ enum cs_log_level { ...@@ -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, ...); ...@@ -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, ...); ...@@ -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
......
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