aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-18 10:11:22 +0200
committerAndreas Schneider <asn@samba.org>2018-08-28 11:46:05 +0200
commitc87f179b8ec238820c913ca0cf8d852603e8f0b7 (patch)
treee8895cadefe37dbfa0ab77a946dff8faa1c5205f
parent442facb82e7871c573eaac897b817b4fb3af2d7b (diff)
downloadresolv_wrapper-c87f179b8ec238820c913ca0cf8d852603e8f0b7.tar.gz
resolv_wrapper-c87f179b8ec238820c913ca0cf8d852603e8f0b7.tar.xz
resolv_wrapper-c87f179b8ec238820c913ca0cf8d852603e8f0b7.zip
rwrap: Always enable logging
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/resolv_wrapper.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/resolv_wrapper.c b/src/resolv_wrapper.c
index c6f06e3..1c71447 100644
--- a/src/resolv_wrapper.c
+++ b/src/resolv_wrapper.c
@@ -82,10 +82,6 @@ enum rwrap_dbglvl_e {
RWRAP_LOG_TRACE
};
-#ifdef NDEBUG
-# define RWRAP_LOG(...)
-#else /* NDEBUG */
-
static void rwrap_log(enum rwrap_dbglvl_e dbglvl, const char *func, const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
# define RWRAP_LOG(dbglvl, ...) rwrap_log((dbglvl), __func__, __VA_ARGS__)
@@ -133,7 +129,6 @@ static void rwrap_log(enum rwrap_dbglvl_e dbglvl,
}
}
}
-#endif /* NDEBUG RWRAP_LOG */
#ifndef SAFE_FREE
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0)