rwrap: Always enable logging
authorAndreas Schneider <asn@samba.org>
Tue, 18 Jul 2017 08:11:22 +0000 (10:11 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 28 Aug 2018 09:46:05 +0000 (11:46 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/resolv_wrapper.c

index c6f06e3c04281a6eda9c8f5a04201c75f05bfe37..1c714475642c2c44585e9b66b6df0339da9d8bf3 100644 (file)
@@ -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)