diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h index ccf80da..90496af 100644 --- a/source3/include/libsmbclient.h +++ b/source3/include/libsmbclient.h @@ -2840,14 +2840,6 @@ smbc_thread_impl( struct _SMBCCTX { /** - * debug level - * - * DEPRECATED: - * Use smbc_getDebug() and smbc_setDebug() - */ - int debug DEPRECATED_SMBC_INTERFACE; - - /** * netbios name used for making connections * * DEPRECATED: diff --git a/source3/libsmb/libsmb_setget.c b/source3/libsmb/libsmb_setget.c index 0a02346..71cf865 100644 --- a/source3/libsmb/libsmb_setget.c +++ b/source3/libsmb/libsmb_setget.c @@ -27,6 +27,7 @@ #include "libsmbclient.h" #include "libsmb_internal.h" +static int smbc_debug_level = 0; /** Get the netbios name used for making connections */ char * @@ -83,7 +84,7 @@ smbc_setUser(SMBCCTX *c, char * user) int smbc_getDebug(SMBCCTX *c) { - return c->debug; + return smbc_debug_level; } /** Set the debug level */ @@ -92,7 +93,7 @@ smbc_setDebug(SMBCCTX *c, int debug) { char buf[32]; snprintf(buf, sizeof(buf), "%d", debug); - c->debug = debug; + smbc_debug_level = debug; lp_set_cmdline("log level", buf); }