summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-15 09:31:34 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-15 09:31:34 +0000
commitb41b1daa36c9ff48616fe23c99da1a00bf11ff84 (patch)
treede344230bdd23d674e807649bb9c28fd413da51e /source3
parent2c3cd9ecba363d78bed2d7c67c17b40204f8a64a (diff)
downloadsamba-b41b1daa36c9ff48616fe23c99da1a00bf11ff84.tar.gz
samba-b41b1daa36c9ff48616fe23c99da1a00bf11ff84.tar.bz2
samba-b41b1daa36c9ff48616fe23c99da1a00bf11ff84.zip
add -d debuglevel option
(This used to be commit 448f21325f8ff53f3ff5e45c22e07f7164529bc9)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/torture.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/torture.c b/source3/utils/torture.c
index a53ba1ce60..5a5754a21a 100644
--- a/source3/utils/torture.c
+++ b/source3/utils/torture.c
@@ -2103,6 +2103,7 @@ static void usage(void)
printf("Usage: smbtorture //server/share <options> TEST1 TEST2 ...\n");
+ printf("\t-d debuglevel\n");
printf("\t-U user%%pass\n");
printf("\t-N numprocs\n");
printf("\t-n my_netbios_name\n");
@@ -2182,7 +2183,7 @@ static void usage(void)
fstrcpy(workgroup, lp_workgroup());
- while ((opt = getopt(argc, argv, "hW:U:n:N:O:o:m:L")) != EOF) {
+ while ((opt = getopt(argc, argv, "hW:U:n:N:O:o:m:Ld:")) != EOF) {
switch (opt) {
case 'W':
fstrcpy(workgroup,optarg);
@@ -2196,6 +2197,9 @@ static void usage(void)
case 'o':
numops = atoi(optarg);
break;
+ case 'd':
+ DEBUGLEVEL = atoi(optarg);
+ break;
case 'O':
sockops = optarg;
break;