getdns/stubby: add missing define for log_warn (as a patch)
parent
8b0e8f7550
commit
f0b2ba6eca
@ -0,0 +1,18 @@
|
||||
--- getdns/src/util/auxiliary/util/log.h
|
||||
+++ getdns/src/util/auxiliary/util/log.h
|
||||
@@ -42,6 +42,7 @@
|
||||
#ifdef DEBUGGING
|
||||
#define verbose(x, ...) DEBUG_NL(__VA_ARGS__)
|
||||
#define log_err(...) DEBUG_NL(__VA_ARGS__)
|
||||
+#define log_warn(...) DEBUG_NL(__VA_ARGS__)
|
||||
#define log_info(...) DEBUG_NL(__VA_ARGS__)
|
||||
#define fatal_exit(...) do { DEBUG_NL(__VA_ARGS__); exit(EXIT_FAILURE); } while(0)
|
||||
#define log_assert(x) do { if(!(x)) fatal_exit("%s:%d: %s: assertion %s failed", \
|
||||
@@ -50,6 +51,7 @@
|
||||
#else
|
||||
#define verbose(...) ((void)0)
|
||||
#define log_err(...) ((void)0)
|
||||
+#define log_warn(...) ((void)0)
|
||||
#define log_info(...) ((void)0)
|
||||
#define fatal_exit(...) ((void)0)
|
||||
#define log_assert(x) ((void)0)
|
Loading…
Reference in New Issue