diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-01-07 03:41:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-01-07 03:41:07 +0000 |
commit | ce2f1a9cf17d0cc86875750878ae691ecbc03da7 (patch) | |
tree | 44358d5bd15de411fb24d41d6b89ab2b810a0105 /sys/dev/usb | |
parent | 99a5fa2ebaccf70827ccc91a391241fa55d56b7f (diff) |
tweak ohci_checkrev so it doesnt print a leading comma and space.
it assumes that it always followed an interrupt string, but we don't
print that on fdt. having the bus responsible for the whitespace
means the fdt glue can print a colon to separate the bus info from
checkrev output, while every other glue keeps the comma.
ok deraadt@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/ohci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 43471e08950..9313dc382df 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci.c,v 1.154 2018/11/18 16:24:05 mpi Exp $ */ +/* $OpenBSD: ohci.c,v 1.155 2019/01/07 03:41:06 dlg Exp $ */ /* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -656,9 +656,8 @@ ohci_checkrev(struct ohci_softc *sc) { u_int32_t rev; - printf(","); rev = OREAD4(sc, OHCI_REVISION); - printf(" version %d.%d%s\n", OHCI_REV_HI(rev), OHCI_REV_LO(rev), + printf("version %d.%d%s\n", OHCI_REV_HI(rev), OHCI_REV_LO(rev), OHCI_REV_LEGACY(rev) ? ", legacy support" : ""); if (OHCI_REV_HI(rev) != 1 || OHCI_REV_LO(rev) != 0) { |