s3-debug Remove 'AllowDebugChange' and use lp_set_cmdline() instead
[idra/samba.git] / source3 / torture / masktest.c
index 82aa6bff3615c2c8988abd5045ceee5c17a28fab..335bc4ca22357b094edf5a8201f35d42e589e8d1 100644 (file)
@@ -34,7 +34,6 @@ static int ignore_dot_errors = 0;
 
 extern char *optarg;
 extern int optind;
-extern bool AllowDebugChange;
 
 /* a test fn for LANMAN mask support */
 static int ms_fnmatch_lanman_core(const char *pattern, const char *string)
@@ -484,10 +483,7 @@ static void usage(void)
 
        setlinebuf(stdout);
 
-       dbf = x_stderr;
-
-       DEBUGLEVEL = 0;
-       AllowDebugChange = False;
+       lp_set_cmdline("log level", "0");
 
        if (argc < 2 || argv[1][0] == '-') {
                usage();
@@ -498,7 +494,7 @@ static void usage(void)
 
        all_string_sub(share,"/","\\",0);
 
-       setup_logging(argv[0],True);
+       setup_logging(argv[0], DEBUG_STDERR);
 
        argc -= 1;
        argv += 1;