diff options
author | 2007-05-02 20:16:13 +0000 | |
---|---|---|
committer | 2007-05-02 20:16:13 +0000 | |
commit | 6627b1381240d539fc91f054aa905e072f15650a (patch) | |
tree | 0276ea9c144cf3f364a5952242915367dbde3011 | |
parent | clarify error message; ok grunk@ (diff) | |
download | wireguard-openbsd-6627b1381240d539fc91f054aa905e072f15650a.tar.xz wireguard-openbsd-6627b1381240d539fc91f054aa905e072f15650a.zip |
convert to standard usage(); ok millert otto
-rw-r--r-- | sbin/tunefs/tunefs.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |