From 6c12eeddb57cc43b970d4795ba5c7d0d752ed7a9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 6 Nov 2019 18:29:27 +0100 Subject: [PATCH] nwrap: Always provide logging Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- src/nss_wrapper.c | 7 ------- 1 file changed, 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) { -- 2.34.1