From c7c47a3f0f6c6afaf88418301bb83b17dd0b6d10 Mon Sep 17 00:00:00 2001 From: youfeng Date: Tue, 9 Mar 2004 02:37:28 +0000 Subject: [PATCH] b 2295 r Jacob add a missing arg to printf, make the program exit with 1 on args error --- lustre/utils/llmount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/llmount.c b/lustre/utils/llmount.c index 87b64d3..26bb5792 100644 --- a/lustre/utils/llmount.c +++ b/lustre/utils/llmount.c @@ -354,8 +354,8 @@ main(int argc, char * const argv[]) if (argc < i) { printf("Too few args!\n"); - printf("Usage: %s [-v] [-n] [-o ...]\n"); - exit(-1); + printf("Usage: %s [-v] [-n] [-o ...]\n", argv[0]); + exit(1); } if (verbose) -- 1.8.3.1