nwrap: Always provide logging
authorAndreas Schneider <asn@samba.org>
Wed, 6 Nov 2019 17:29:27 +0000 (18:29 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 11 Nov 2019 14:44:13 +0000 (15:44 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/nss_wrapper.c

index 33b610b6cc3905d25a366b1143267422924d2b9d..9f5fdd99111a4a444c3648739649d685a1b2c31d 100644 (file)
@@ -243,10 +243,6 @@ enum nwrap_dbglvl_e {
        NWRAP_LOG_TRACE
 };
 
-#ifdef NDEBUG
-# define NWRAP_LOG(...)
-#else
-
 static void nwrap_log(enum nwrap_dbglvl_e dbglvl, const char *func, const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
 # define NWRAP_LOG(dbglvl, ...) nwrap_log((dbglvl), __func__, __VA_ARGS__)
 
@@ -294,7 +290,6 @@ static void nwrap_log(enum nwrap_dbglvl_e dbglvl,
                }
        }
 }
-#endif /* NDEBUG NWRAP_LOG */
 
 struct nwrap_libc_fns {
        struct passwd *(*_libc_getpwnam)(const char *name);
@@ -824,7 +819,6 @@ enum nwrap_lib {
     NWRAP_LIBSOCKET,
 };
 
-#ifndef NDEBUG
 static const char *nwrap_str_lib(enum nwrap_lib lib)
 {
        switch (lib) {
@@ -839,7 +833,6 @@ static const char *nwrap_str_lib(enum nwrap_lib lib)
        /* Compiler would warn us about unhandled enum value if we get here */
        return "unknown";
 }
-#endif
 
 static void *nwrap_load_lib_handle(enum nwrap_lib lib)
 {