In bhyve's fbuf emulation improve the overall "usage" message and

for the vga option, rather than printing the entire option string,
only print vga (as we do for everything else).

MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2018-10-22 11:43:43 +00:00
parent f0319886ca
commit fb72b618c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339586

View File

@ -117,8 +117,9 @@ static void
pci_fbuf_usage(char *opt)
{
fprintf(stderr, "Invalid fbuf emulation \"%s\"\r\n", opt);
fprintf(stderr, "fbuf: {wait,}{vga=on|io|off,}rfb=<ip>:port\r\n");
fprintf(stderr, "Invalid fbuf emulation option \"%s\"\r\n", opt);
fprintf(stderr, "fbuf: {wait,}{vga=on|io|off,}rfb=<ip>:port"
"{,w=width}{,h=height}\r\n");
}
static void
@ -268,7 +269,7 @@ pci_fbuf_parse_opts(struct pci_fbuf_softc *sc, char *opts)
sc->vga_enabled = 1;
sc->vga_full = 1;
} else {
pci_fbuf_usage(opts);
pci_fbuf_usage(xopts);
ret = -1;
goto done;
}