Add option descriptions
[yaffs2.git] / direct / tests / yaffs_test.c
index 421b5b1..a0f9bdb 100644 (file)
@@ -43,6 +43,15 @@ char mount_point[200];
 
 void BadUsage(void)
 {
+       printf("Usage: yaffs_test [options] mountpoint\n");
+       printf("options\n");
+       printf(" f: do fsx testing\n");
+       printf(" i: initialise for upgrade testing\n");
+       printf(" l: multiply number of operations by 5\n");
+       printf(" n nnn: number of cycles\n");
+       printf(" p: simulate power fail testing\n");
+       printf(" s sss: set seed\n");
+       printf(" u: do upgrade test\n);
        exit(2);
 }
 
@@ -101,7 +110,7 @@ int main(int argc, char **argv)
                        simulate_power_failure = 0;
                        NorStressTestInitialise(mount_point);
                } else if(do_upgrade){
-                       printf("Running stress on %s with seed %d\n",argv[1],random_seed);
+                       printf("Running stress on %s with seed %d\n",mount_point,random_seed);
                        NorStressTestRun(mount_point,n_cycles,do_fsx);
                } else if(do_fsx){
                        yaffs_fsx_main(mount_point,n_cycles);