diff options
author | Jolan Luff <jolan@cvs.openbsd.org> | 2006-07-12 06:26:35 +0000 |
---|---|---|
committer | Jolan Luff <jolan@cvs.openbsd.org> | 2006-07-12 06:26:35 +0000 |
commit | 9649714a2bd62061a899f2e4e4eea6f4e9281274 (patch) | |
tree | 6046d8abb939716985d354ec71a2bcce33c5383d /sys/dev | |
parent | 45de7424bb71e8fd7bbcdc6fcfd106800d4e31ba (diff) |
make dmesg lines openbsd-style, ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/cardbus/ehci_cardbus.c | 11 | ||||
-rw-r--r-- | sys/dev/cardbus/ohci_cardbus.c | 6 | ||||
-rw-r--r-- | sys/dev/cardbus/uhci_cardbus.c | 6 |
3 files changed, 15 insertions, 8 deletions
diff --git a/sys/dev/cardbus/ehci_cardbus.c b/sys/dev/cardbus/ehci_cardbus.c index c1ca212ff6c..d2454e90fa9 100644 --- a/sys/dev/cardbus/ehci_cardbus.c +++ b/sys/dev/cardbus/ehci_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ehci_cardbus.c,v 1.6 2006/06/21 11:27:03 fkr Exp $ */ +/* $OpenBSD: ehci_cardbus.c,v 1.7 2006/07/12 06:26:34 jolan Exp $ */ /* $NetBSD: ehci_cardbus.c,v 1.6.6.3 2004/09/21 13:27:25 skrll Exp $ */ /* @@ -115,8 +115,7 @@ ehci_cardbus_attach(struct device *parent, struct device *self, void *aux) const char *devname = sc->sc.sc_bus.bdev.dv_xname; cardbus_devinfo(ca->ca_id, ca->ca_class, 0, devinfo, sizeof(devinfo)); - printf(": %s (rev. 0x%02x)\n", devinfo, - CARDBUS_REVISION(ca->ca_class)); + printf(" %s", devinfo); /* Map I/O registers */ if (Cardbus_mapreg_map(ct, CARDBUS_CBMEM, CARDBUS_MAPREG_TYPE_MEM, 0, @@ -142,16 +141,16 @@ ehci_cardbus_attach(struct device *parent, struct device *self, void *aux) /* Disable interrupts, so we don't get any spurious ones. */ sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH); - DPRINTF(("%s: offs=%d\n", devname, sc->sc.sc_offs)); + DPRINTF((": offs=%d", devname, sc->sc.sc_offs)); EOWRITE2(&sc->sc, EHCI_USBINTR, 0); sc->sc_ih = cardbus_intr_establish(cc, cf, ca->ca_intrline, IPL_USB, ehci_intr, sc); if (sc->sc_ih == NULL) { - printf("%s: couldn't establish interrupt\n", devname); + printf(": unable to establish interrupt\n"); return; } - printf("%s: interrupting at %d\n", devname, ca->ca_intrline); + printf(": irq %d\n", ca->ca_intrline); /* Figure out vendor for root hub descriptor. */ vendor = cardbus_findvendor(ca->ca_id); diff --git a/sys/dev/cardbus/ohci_cardbus.c b/sys/dev/cardbus/ohci_cardbus.c index 8e9e215d903..d0c09e25d40 100644 --- a/sys/dev/cardbus/ohci_cardbus.c +++ b/sys/dev/cardbus/ohci_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ohci_cardbus.c,v 1.6 2006/06/21 11:27:03 fkr Exp $ */ +/* $OpenBSD: ohci_cardbus.c,v 1.7 2006/07/12 06:26:34 jolan Exp $ */ /* $NetBSD: ohci_cardbus.c,v 1.19 2004/08/02 19:14:28 mycroft Exp $ */ /* @@ -109,10 +109,14 @@ ohci_cardbus_attach(struct device *parent, struct device *self, void *aux) cardbus_chipset_tag_t cc = ct->ct_cc; cardbus_function_tag_t cf = ct->ct_cf; cardbusreg_t csr; + char devinfo[256]; usbd_status r; const char *vendor; const char *devname = sc->sc.sc_bus.bdev.dv_xname; + cardbus_devinfo(ca->ca_id, ca->ca_class, 0, devinfo, sizeof(devinfo)); + printf(" %s", devinfo); + /* Map I/O registers */ if (Cardbus_mapreg_map(ct, CARDBUS_CBMEM, CARDBUS_MAPREG_TYPE_MEM, 0, &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { diff --git a/sys/dev/cardbus/uhci_cardbus.c b/sys/dev/cardbus/uhci_cardbus.c index 1ce96546686..e1010a5eb4c 100644 --- a/sys/dev/cardbus/uhci_cardbus.c +++ b/sys/dev/cardbus/uhci_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhci_cardbus.c,v 1.3 2006/06/21 11:27:03 fkr Exp $ */ +/* $OpenBSD: uhci_cardbus.c,v 1.4 2006/07/12 06:26:34 jolan Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -99,10 +99,14 @@ uhci_cardbus_attach(struct device *parent, struct device *self, void *aux) cardbus_chipset_tag_t cc = ct->ct_cc; cardbus_function_tag_t cf = ct->ct_cf; cardbusreg_t csr; + char devinfo[256]; usbd_status r; const char *vendor; const char *devname = sc->sc.sc_bus.bdev.dv_xname; + cardbus_devinfo(ca->ca_id, ca->ca_class, 0, devinfo, sizeof(devinfo)); + printf(" %s", devinfo); + /* Map I/O registers */ if (Cardbus_mapreg_map(ct, PCI_CBIO, CARDBUS_MAPREG_TYPE_IO, 0, &sc->sc.iot, &sc->sc.ioh, NULL, &sc->sc.sc_size)) { |