aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-31 18:21:53 +0200
committerAndreas Schneider <asn@samba.org>2017-09-07 07:56:57 +0200
commitd1bc679f21155a19d5b691f695cf29c2a94b87cc (patch)
treec8e0eed1ed74857d0108fb16241fab8992d98925 /src
parentfa9cc407f1a8bd17433835eedcc0135424d420a1 (diff)
downloadsocket_wrapper-d1bc679f21155a19d5b691f695cf29c2a94b87cc.tar.gz
socket_wrapper-d1bc679f21155a19d5b691f695cf29c2a94b87cc.tar.xz
socket_wrapper-d1bc679f21155a19d5b691f695cf29c2a94b87cc.zip
swrap: Always enable logging
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 280215e..39787ba 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -350,10 +350,6 @@ bool socket_wrapper_enabled(void);
void swrap_constructor(void) CONSTRUCTOR_ATTRIBUTE;
void swrap_destructor(void) DESTRUCTOR_ATTRIBUTE;
-#ifdef NDEBUG
-# define SWRAP_LOG(...)
-#else
-
static void swrap_log(enum swrap_dbglvl_e dbglvl, const char *func, const char *format, ...) PRINTF_ATTRIBUTE(3, 4);
# define SWRAP_LOG(dbglvl, ...) swrap_log((dbglvl), __func__, __VA_ARGS__)
@@ -400,7 +396,6 @@ static void swrap_log(enum swrap_dbglvl_e dbglvl,
}
}
}
-#endif
/*********************************************************
* SWRAP LOADING LIBC FUNCTIONS
@@ -566,7 +561,6 @@ enum swrap_lib {
SWRAP_LIBSOCKET,
};
-#ifndef NDEBUG
static const char *swrap_str_lib(enum swrap_lib lib)
{
switch (lib) {
@@ -581,7 +575,6 @@ static const char *swrap_str_lib(enum swrap_lib lib)
/* Compiler would warn us about unhandled enum value if we get here */
return "unknown";
}
-#endif
static void *swrap_load_lib_handle(enum swrap_lib lib)
{