Whamcloud - gitweb
b 2295
authoryoufeng <youfeng>
Tue, 9 Mar 2004 02:37:28 +0000 (02:37 +0000)
committeryoufeng <youfeng>
Tue, 9 Mar 2004 02:37:28 +0000 (02:37 +0000)
r Jacob

add a missing arg to printf, make the program exit with 1 on args error

lustre/utils/llmount.c

index 87b64d3..26bb579 100644 (file)
@@ -354,8 +354,8 @@ main(int argc, char * const argv[])
 
         if (argc < i) {
                 printf("Too few args!\n");
-                printf("Usage: %s <source> <target> [-v] [-n] [-o ...]\n");
-                exit(-1);
+                printf("Usage: %s <source> <target> [-v] [-n] [-o ...]\n", argv[0]);
+                exit(1);
         }
 
         if (verbose)