add -d debuglevel option
authorAndrew Tridgell <tridge@samba.org>
Thu, 15 Jun 2000 09:31:34 +0000 (09:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 15 Jun 2000 09:31:34 +0000 (09:31 +0000)
(This used to be commit 448f21325f8ff53f3ff5e45c22e07f7164529bc9)

source3/utils/torture.c

index a53ba1ce60904fd86187b5fa95bae2be0b2d985d..5a5754a21a9d1f365b75ca94216ac81f92089b33 100644 (file)
@@ -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;