mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Clean up the usage() function to use a single fprintf().
Submitted by: Christoph Mallon <christoph mallon gmx de>
This commit is contained in:
parent
e1048f7678
commit
b64e8d53e7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190924
@ -983,30 +983,29 @@ setstr(u_int8_t *dest, const char *src, size_t len)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"usage: newfs_msdos [ -options ] special [disktype]\n");
|
||||
fprintf(stderr, "where the options are:\n");
|
||||
fprintf(stderr, "\t-N don't create file system: "
|
||||
"just print out parameters\n");
|
||||
fprintf(stderr, "\t-B get bootstrap from file\n");
|
||||
fprintf(stderr, "\t-F FAT type (12, 16, or 32)\n");
|
||||
fprintf(stderr, "\t-I volume ID\n");
|
||||
fprintf(stderr, "\t-L volume label\n");
|
||||
fprintf(stderr, "\t-O OEM string\n");
|
||||
fprintf(stderr, "\t-S bytes/sector\n");
|
||||
fprintf(stderr, "\t-a sectors/FAT\n");
|
||||
fprintf(stderr, "\t-b block size\n");
|
||||
fprintf(stderr, "\t-c sectors/cluster\n");
|
||||
fprintf(stderr, "\t-e root directory entries\n");
|
||||
fprintf(stderr, "\t-f standard format\n");
|
||||
fprintf(stderr, "\t-h drive heads\n");
|
||||
fprintf(stderr, "\t-i file system info sector\n");
|
||||
fprintf(stderr, "\t-k backup boot sector\n");
|
||||
fprintf(stderr, "\t-m media descriptor\n");
|
||||
fprintf(stderr, "\t-n number of FATs\n");
|
||||
fprintf(stderr, "\t-o hidden sectors\n");
|
||||
fprintf(stderr, "\t-r reserved sectors\n");
|
||||
fprintf(stderr, "\t-s file system size (sectors)\n");
|
||||
fprintf(stderr, "\t-u sectors/track\n");
|
||||
exit(1);
|
||||
fprintf(stderr,
|
||||
"usage: newfs_msdos [ -options ] special [disktype]\n"
|
||||
"where the options are:\n"
|
||||
"\t-B get bootstrap from file\n"
|
||||
"\t-F FAT type (12, 16, or 32)\n"
|
||||
"\t-I volume ID\n"
|
||||
"\t-L volume label\n"
|
||||
"\t-N don't create file system: just print out parameters\n"
|
||||
"\t-O OEM string\n"
|
||||
"\t-S bytes/sector\n"
|
||||
"\t-a sectors/FAT\n"
|
||||
"\t-b block size\n"
|
||||
"\t-c sectors/cluster\n"
|
||||
"\t-e root directory entries\n"
|
||||
"\t-f standard format\n"
|
||||
"\t-h drive heads\n"
|
||||
"\t-i file system info sector\n"
|
||||
"\t-k backup boot sector\n"
|
||||
"\t-m media descriptor\n"
|
||||
"\t-n number of FATs\n"
|
||||
"\t-o hidden sectors\n"
|
||||
"\t-r reserved sectors\n"
|
||||
"\t-s file system size (sectors)\n"
|
||||
"\t-u sectors/track\n");
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user