svn commit: r339586 - head/usr.sbin/bhyve
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Oct 22 11:43:44 UTC 2018
Author: bz
Date: Mon Oct 22 11:43:43 2018
New Revision: 339586
URL: https://svnweb.freebsd.org/changeset/base/339586
Log:
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
Modified:
head/usr.sbin/bhyve/pci_fbuf.c
Modified: head/usr.sbin/bhyve/pci_fbuf.c
==============================================================================
--- head/usr.sbin/bhyve/pci_fbuf.c Mon Oct 22 11:23:51 2018 (r339585)
+++ head/usr.sbin/bhyve/pci_fbuf.c Mon Oct 22 11:43:43 2018 (r339586)
@@ -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 *o
sc->vga_enabled = 1;
sc->vga_full = 1;
} else {
- pci_fbuf_usage(opts);
+ pci_fbuf_usage(xopts);
ret = -1;
goto done;
}
More information about the svn-src-head
mailing list