summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-29 15:29:09 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-11-02 04:36:04 +0000
commitd9f67eebf621adacf5514c7ba1ed17b4953db762 (patch)
treed47933d295d9291c0711bb6c103c7c365c685d49 /source3/torture
parentcf4de8ec2c8df2ceabbe3d836d296b058e7b19fb (diff)
downloadsamba-d9f67eebf621adacf5514c7ba1ed17b4953db762.tar.gz
samba-d9f67eebf621adacf5514c7ba1ed17b4953db762.tar.bz2
samba-d9f67eebf621adacf5514c7ba1ed17b4953db762.zip
s3-debug Remove last direct assignements to DEBUGLEVEL
All future assignments of the debug level should go via lp_set_cmdline("log level", "x") because this will ensure the value is not overwritten in an smb.conf load. Andrew Bartlett
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/masktest.c2
-rw-r--r--source3/torture/torture.c2
-rw-r--r--source3/torture/vfstest.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c
index 335bc4ca22..1fc46b9c28 100644
--- a/source3/torture/masktest.c
+++ b/source3/torture/masktest.c
@@ -515,7 +515,7 @@ static void usage(void)
NumLoops = atoi(optarg);
break;
case 'd':
- DEBUGLEVEL = atoi(optarg);
+ lp_set_cmdline("log level", optarg);
break;
case 'E':
die_on_error = 1;
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index bc4b58be73..161c6f9a64 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -8009,7 +8009,7 @@ static void usage(void)
torture_numops = atoi(optarg);
break;
case 'd':
- DEBUGLEVEL = atoi(optarg);
+ lp_set_cmdline("log level", optarg);
break;
case 'O':
sockops = optarg;
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 3b0ec54564..3ebe63ee53 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -188,7 +188,7 @@ static NTSTATUS cmd_debuglevel(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int a
}
if (argc == 2) {
- DEBUGLEVEL = atoi(argv[1]);
+ lp_set_cmdline("log level", argv[1]);
}
printf("debuglevel is %d\n", DEBUGLEVEL);