Offer better advice in #error.
Remove yet a usage message about -N/-W
This commit is contained in:
parent
44e4f023ae
commit
7e3e26cdc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109884
@ -109,7 +109,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#elif defined(__alpha__)
|
#elif defined(__alpha__)
|
||||||
#define NUMBOOT 1
|
#define NUMBOOT 1
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
void makelabel(const char *, const char *, struct disklabel *);
|
void makelabel(const char *, const char *, struct disklabel *);
|
||||||
@ -1653,16 +1653,14 @@ usage(void)
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
#else
|
#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)",
|
"usage: disklabel [-r] disk", "(to read label)",
|
||||||
" disklabel -w [-r] [-n] disk type [ packid ]",
|
" disklabel -w [-r] [-n] disk type [ packid ]",
|
||||||
"\t\t(to write label)",
|
"\t\t(to write label)",
|
||||||
" disklabel -e [-r] [-n] disk",
|
" disklabel -e [-r] [-n] disk",
|
||||||
"\t\t(to edit label)",
|
"\t\t(to edit label)",
|
||||||
" disklabel -R [-r] [-n] disk protofile",
|
" disklabel -R [-r] [-n] disk protofile",
|
||||||
"\t\t(to restore label)",
|
"\t\t(to restore label)");
|
||||||
" disklabel [-NW] disk",
|
|
||||||
"\t\t(to write disable/enable label)");
|
|
||||||
#endif
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
#elif defined(__alpha__)
|
#elif defined(__alpha__)
|
||||||
#define NUMBOOT 1
|
#define NUMBOOT 1
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
void makelabel(const char *, const char *, struct disklabel *);
|
void makelabel(const char *, const char *, struct disklabel *);
|
||||||
@ -1653,16 +1653,14 @@ usage(void)
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
#else
|
#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)",
|
"usage: disklabel [-r] disk", "(to read label)",
|
||||||
" disklabel -w [-r] [-n] disk type [ packid ]",
|
" disklabel -w [-r] [-n] disk type [ packid ]",
|
||||||
"\t\t(to write label)",
|
"\t\t(to write label)",
|
||||||
" disklabel -e [-r] [-n] disk",
|
" disklabel -e [-r] [-n] disk",
|
||||||
"\t\t(to edit label)",
|
"\t\t(to edit label)",
|
||||||
" disklabel -R [-r] [-n] disk protofile",
|
" disklabel -R [-r] [-n] disk protofile",
|
||||||
"\t\t(to restore label)",
|
"\t\t(to restore label)");
|
||||||
" disklabel [-NW] disk",
|
|
||||||
"\t\t(to write disable/enable label)");
|
|
||||||
#endif
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user