aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-11-06 18:29:27 +0100
committerAndreas Schneider <asn@samba.org>2019-11-11 15:44:13 +0100
commit6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9 (patch)
treeb26ae066beee99ba5840028a5cfcd72475201ac1
parentf81e1e032c6828951b7a1ddc5bb4782923f0dbe9 (diff)
downloadnss_wrapper-6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9.tar.gz
nss_wrapper-6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9.tar.xz
nss_wrapper-6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9.zip
nwrap: Always provide logging
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/nss_wrapper.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c
index 33b610b..9f5fdd9 100644
--- a/src/nss_wrapper.c
+++ b/src/nss_wrapper.c
@@ -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)
{