diff options
author | des <des@FreeBSD.org> | 2002-04-22 13:44:47 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-04-22 13:44:47 +0000 |
commit | 4d6b787d2daa6eb05c0f3526d65b0b92b1afa715 (patch) | |
tree | bf1d5b964f5e7e91c796086166af5a86d7d454a0 /sbin | |
parent | 5cd51ad03ace6eb47f39604929482ae558d66aad (diff) | |
download | FreeBSD-src-4d6b787d2daa6eb05c0f3526d65b0b92b1afa715.zip FreeBSD-src-4d6b787d2daa6eb05c0f3526d65b0b92b1afa715.tar.gz |
Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck/fsck.c | 2 | ||||
-rw-r--r-- | sbin/fsck_ffs/main.c | 2 | ||||
-rw-r--r-- | sbin/fsck_ifs/main.c | 2 | ||||
-rw-r--r-- | sbin/fsck_msdosfs/main.c | 2 | ||||
-rw-r--r-- | sbin/mdconfig/mdconfig.c | 2 | ||||
-rw-r--r-- | sbin/mdmfs/mdmfs.c | 4 | ||||
-rw-r--r-- | sbin/vinum/commands.c | 22 | ||||
-rw-r--r-- | sbin/vinum/list.c | 2 |
8 files changed, 19 insertions, 19 deletions
diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c index 6b913bc..fdc3ae0 100644 --- a/sbin/fsck/fsck.c +++ b/sbin/fsck/fsck.c @@ -582,7 +582,7 @@ usage(void) static const char common[] = "[-BFdpvlyn] [-T fstype:fsoptions] [-t fstype]"; - (void)fprintf(stderr, "Usage: %s %s [special|node]...\n", + (void)fprintf(stderr, "usage: %s %s [special|node]...\n", getprogname(), common); exit(1); } diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 55e25c3..eaf90dd 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -498,7 +498,7 @@ static void usage(void) { (void) fprintf(stderr, - "Usage: %s [-BFpfny] [-b block] [-c level] [-m mode] " + "usage: %s [-BFpfny] [-b block] [-c level] [-m mode] " "filesystem ...\n", getprogname()); exit(1); diff --git a/sbin/fsck_ifs/main.c b/sbin/fsck_ifs/main.c index 356d90f..52263b9 100644 --- a/sbin/fsck_ifs/main.c +++ b/sbin/fsck_ifs/main.c @@ -398,7 +398,7 @@ static void usage(void) { (void) fprintf(stderr, - "Usage: %s [-dfnpy] [-B be|le] [-b block] [-c level] [-m mode] " + "usage: %s [-dfnpy] [-B be|le] [-b block] [-c level] [-m mode] " "filesystem ...\n", getprogname()); exit(1); diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index 110b360..cbfe6da 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -59,7 +59,7 @@ static void usage(void) __dead2; static void usage() { - errexit("Usage: fsck_msdos [-fnpy] filesystem ... \n"); + errexit("usage: fsck_msdos [-fnpy] filesystem ... \n"); } int diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c index 8a6019f..a730332 100644 --- a/sbin/mdconfig/mdconfig.c +++ b/sbin/mdconfig/mdconfig.c @@ -36,7 +36,7 @@ enum {UNSET, ATTACH, DETACH, LIST} action = UNSET; void usage() { - fprintf(stderr, "Usage:\n"); + fprintf(stderr, "usage:\n"); fprintf(stderr, "\tmdconfig -a -t type [-o [no]option]... [ -f file] [-s size] [-u unit]\n"); fprintf(stderr, "\tmdconfig -d -u unit\n"); fprintf(stderr, "\tmdconfig -l [-u unit]\n"); diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c index 9c59db7..53e772e 100644 --- a/sbin/mdmfs/mdmfs.c +++ b/sbin/mdmfs/mdmfs.c @@ -676,13 +676,13 @@ usage(void) name = "mdmfs"; if (!compat) fprintf(stderr, -"Usage: %s [-DLMNSUX] [-a maxcontig [-b block-size] [-c cylinders]\n" +"usage: %s [-DLMNSUX] [-a maxcontig [-b block-size] [-c cylinders]\n" "\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" "\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" "\t[-o mount-options] [-p permissions] [-s size] [-w user:group]\n" "\tmd-device mount-point\n", name); fprintf(stderr, -"Usage: %s -C [-NU] [-a maxcontig] [-b block-size] [-c cylinders]\n" +"usage: %s -C [-NU] [-a maxcontig] [-b block-size] [-c cylinders]\n" "\t[-d rotdelay] [-e maxbpg] [-F file] [-f frag-size] [-i bytes]\n" "\t[-m percent-free] [-n rotational-positions] [-O optimization]\n" "\t[-o mount-options] [-s size] md-device mount-point\n", name); diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index ff8acd8..011df59 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -173,7 +173,7 @@ vinum_read(int argc, char *argv[], char *arg0[]) reply = (struct _ioctl_reply *) &buffer; if (argc < 1) { /* wrong arg count */ - fprintf(stderr, "Usage: read drive [drive ...]\n"); + fprintf(stderr, "usage: read drive [drive ...]\n"); return; } strcpy(buffer, "read "); @@ -241,7 +241,7 @@ vinum_rm(int argc, char *argv[], char *arg0[]) struct vinum_ioctl_msg *message = (struct vinum_ioctl_msg *) &reply; if (argc == 0) /* start everything */ - fprintf(stderr, "Usage: rm object [object...]\n"); + fprintf(stderr, "usage: rm object [object...]\n"); else { /* start specified objects */ int index; enum objecttype type; @@ -933,7 +933,7 @@ vinum_attach(int argc, char *argv[], char *argv0[]) if ((argc < 2) || (argc > 4)) { fprintf(stderr, - "Usage: \tattach <subdisk> <plex> [rename] [<plexoffset>]\n" + "usage: \tattach <subdisk> <plex> [rename] [<plexoffset>]\n" "\tattach <plex> <volume> [rename]\n"); return; } @@ -1055,7 +1055,7 @@ vinum_detach(int argc, char *argv[], char *argv0[]) if ((argc < 1) || (argc > 2)) { fprintf(stderr, - "Usage: \tdetach <subdisk> [rename]\n" + "usage: \tdetach <subdisk> [rename]\n" "\tdetach <plex> [rename]\n"); return; } @@ -1196,7 +1196,7 @@ void vinum_rename(int argc, char *argv[], char *argv0[]) { if (argc != 2) { - fprintf(stderr, "Usage: \trename <object> <new name>\n"); + fprintf(stderr, "usage: \trename <object> <new name>\n"); return; } if (ioctl(superdev, VINUM_GETCONFIG, &vinum_conf) < 0) { @@ -1225,7 +1225,7 @@ vinum_mv(int argc, char *argv[], char *argv0[]) struct vinum_ioctl_msg *msg = (struct vinum_ioctl_msg *) &reply; if (argc < 2) { - fprintf(stderr, "Usage: \tmove <dest> <src> ...\n"); + fprintf(stderr, "usage: \tmove <dest> <src> ...\n"); return; } /* Get current config */ @@ -1433,7 +1433,7 @@ vinum_setdaemon(int argc, char *argv[], char *argv0[]) break; default: - fprintf(stderr, "Usage: \tsetdaemon [<bitmask>]\n"); + fprintf(stderr, "usage: \tsetdaemon [<bitmask>]\n"); } checkupdates(); /* make sure we're updating */ } @@ -1445,7 +1445,7 @@ vinum_saveconfig(int argc, char *argv[], char *argv0[]) int ioctltype; if (argc != 0) { - printf("Usage: saveconfig\n"); + printf("usage: saveconfig\n"); return; } ioctltype = 1; /* user saveconfig */ @@ -2248,7 +2248,7 @@ vinum_readpol(int argc, char *argv[], char *argv0[]) int plexno; if (argc == 0) { /* start everything */ - fprintf(stderr, "Usage: readpol <volume> <plex>|round\n"); + fprintf(stderr, "usage: readpol <volume> <plex>|round\n"); return; } object = find_object(argv[1], &type); /* look for it */ @@ -2360,7 +2360,7 @@ vinum_checkparity(int argc, char *argv[], char *argv0[]) { Verbose = vflag; /* accept -v for verbose */ if (argc == 0) /* no parameters? */ - fprintf(stderr, "Usage: checkparity object [object...]\n"); + fprintf(stderr, "usage: checkparity object [object...]\n"); else parityops(argc, argv, checkparity); } @@ -2369,7 +2369,7 @@ void vinum_rebuildparity(int argc, char *argv[], char *argv0[]) { if (argc == 0) /* no parameters? */ - fprintf(stderr, "Usage: rebuildparity object [object...]\n"); + fprintf(stderr, "usage: rebuildparity object [object...]\n"); else parityops(argc, argv, vflag ? rebuildandcheckparity : rebuildparity); } diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index 24dc35e..d7b4ff8 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -1031,7 +1031,7 @@ vinum_printconfig(int argc, char *argv[], char *argv0[]) FILE *of; if (argc > 1) { - fprintf(stderr, "Usage: \tprintconfig [<outfile>]\n"); + fprintf(stderr, "usage: \tprintconfig [<outfile>]\n"); return; } else if (argc == 1) of = fopen(argv[0], "w"); |