From 7d08245eab377b8dbef5164aae3a0f22e5a92160 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Wed, 2 May 2007 20:16:14 +0000 Subject: convert to standard usage(); ok millert otto --- sbin/tunefs/tunefs.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sbin/tunefs') diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 2de1fbed83a..b0735fe519c 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -266,14 +266,14 @@ getnum(const char *num, const char *desc, int min, int max) static void usage(void) { + extern char *__progname; + + fprintf(stderr, + "usage: %s [-AFN] [-e maxbpg] [-g avgfilesize] " + "[-h avgfpdir] [-m minfree]\n" + "\t[-o optimize_preference] special | filesys\n", + __progname); - fprintf(stderr, "usage: tunefs [-AFN] tuneup-options special-device\n" - "where tuneup-options are:\n" - "\t-e maximum blocks per file in a cylinder group\n" - "\t-g average file size\n" - "\t-h expected number of files per directory\n" - "\t-m minimum percentage of free space\n" - "\t-o optimization preference (`space' or `time')\n"); exit(2); } -- cgit v1.2.3