There are a bunch of nearby printfs which start with ": ..." without
a devname. I'm not sure which one is preferred, so here's both ways.


Index: ehci_cardbus.c
===================================================================
RCS file: /cvs/src/sys/dev/cardbus/ehci_cardbus.c,v
retrieving revision 1.17
diff -u -p -r1.17 ehci_cardbus.c
--- ehci_cardbus.c      15 Apr 2013 09:23:00 -0000      1.17
+++ ehci_cardbus.c      16 May 2014 17:47:18 -0000
@@ -130,7 +130,7 @@ ehci_cardbus_attach(struct device *paren
 
        /* Disable interrupts, so we don't get any spurious ones. */
        sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH);
-       DPRINTF((": offs=%d", devname, sc->sc.sc_offs));
+       DPRINTF(("%s: offs=%d", devname, sc->sc.sc_offs));
        EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
 
        sc->sc_ih = cardbus_intr_establish(cc, cf, ca->ca_intrline,


Index: ehci_cardbus.c
===================================================================
RCS file: /cvs/src/sys/dev/cardbus/ehci_cardbus.c,v
retrieving revision 1.17
diff -u -p -r1.17 ehci_cardbus.c
--- ehci_cardbus.c      15 Apr 2013 09:23:00 -0000      1.17
+++ ehci_cardbus.c      16 May 2014 18:05:38 -0000
@@ -130,7 +130,7 @@ ehci_cardbus_attach(struct device *paren
 
        /* Disable interrupts, so we don't get any spurious ones. */
        sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH);
-       DPRINTF((": offs=%d", devname, sc->sc.sc_offs));
+       DPRINTF((": offs=%d", sc->sc.sc_offs));
        EOWRITE2(&sc->sc, EHCI_USBINTR, 0);
 
        sc->sc_ih = cardbus_intr_establish(cc, cf, ca->ca_intrline,

Reply via email to