diff options
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/masktest.c | 2 | ||||
-rw-r--r-- | source3/torture/torture.c | 2 | ||||
-rw-r--r-- | source3/torture/vfstest.c | 2 |
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); |