bsdlabel: emit deprecation notice when run

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Reision: https://reviews.freebsd.org/D43586
This commit is contained in:
Ed Maste 2024-01-24 14:33:35 -05:00
parent b6f3cced15
commit 3661658c76

View File

@ -135,6 +135,10 @@ main(int argc, char *argv[])
error = 0;
name = NULL;
fprintf(stderr,
"WARNING: bsdlabel is deprecated and is not available in FreeBSD 15 or later.\n"
"Please use gpart instead.\n\n");
while ((ch = getopt(argc, argv, "ABb:efm:nRrw")) != -1)
switch (ch) {
case 'A':