summaryrefslogtreecommitdiffstats
path: root/sbin/disklabel
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-01-26 12:39:46 +0000
committerphk <phk@FreeBSD.org>2003-01-26 12:39:46 +0000
commit807fc7de0e90b8b2cf8568421a5dc5718faefbfd (patch)
tree6d1e7ff179a72cb7364f9c9620fc6b6e0406e850 /sbin/disklabel
parent7c6bc189613213ee883959993bb35f7744f4cad6 (diff)
downloadFreeBSD-src-807fc7de0e90b8b2cf8568421a5dc5718faefbfd.zip
FreeBSD-src-807fc7de0e90b8b2cf8568421a5dc5718faefbfd.tar.gz
Offer better advice in #error.
Remove yet a usage message about -N/-W
Diffstat (limited to 'sbin/disklabel')
-rw-r--r--sbin/disklabel/disklabel.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 16e5138..1aeec99 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -109,7 +109,7 @@ __FBSDID("$FreeBSD$");
#elif defined(__alpha__)
#define NUMBOOT 1
#else
-#error I do not know about this architecture.
+#error I do not know about this architecture, and shall probably not be compiled for it.
#endif
void makelabel(const char *, const char *, struct disklabel *);
@@ -1653,16 +1653,14 @@ usage(void)
#endif
);
#else
- fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
+ fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
"usage: disklabel [-r] disk", "(to read label)",
" disklabel -w [-r] [-n] disk type [ packid ]",
"\t\t(to write label)",
" disklabel -e [-r] [-n] disk",
"\t\t(to edit label)",
" disklabel -R [-r] [-n] disk protofile",
- "\t\t(to restore label)",
- " disklabel [-NW] disk",
- "\t\t(to write disable/enable label)");
+ "\t\t(to restore label)");
#endif
exit(1);
}
OpenPOWER on IntegriCloud