Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use aprint_*().



details:   https://anonhg.NetBSD.org/src/rev/7049e9b02c5a
branches:  trunk
changeset: 542510:7049e9b02c5a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jan 31 05:25:57 2003 +0000

description:
Use aprint_*().

diffstat:

 sys/dev/usb/ehci.c |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (69 lines):

diff -r 1b765d110aaf -r 7049e9b02c5a sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Fri Jan 31 05:24:31 2003 +0000
+++ b/sys/dev/usb/ehci.c        Fri Jan 31 05:25:57 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.40 2002/11/19 19:18:09 martin Exp $ */
+/*     $NetBSD: ehci.c,v 1.41 2003/01/31 05:25:57 thorpej Exp $        */
 
 /*
  * TODO
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.40 2002/11/19 19:18:09 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.41 2003/01/31 05:25:57 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -303,26 +303,26 @@
        sc->sc_offs = EREAD1(sc, EHCI_CAPLENGTH);
 
        version = EREAD2(sc, EHCI_HCIVERSION);
-       printf("%s: EHCI version %x.%x\n", USBDEVNAME(sc->sc_bus.bdev),
+       aprint_normal("%s: EHCI version %x.%x\n", USBDEVNAME(sc->sc_bus.bdev),
               version >> 8, version & 0xff);
 
        sparams = EREAD4(sc, EHCI_HCSPARAMS);
        DPRINTF(("ehci_init: sparams=0x%x\n", sparams));
        sc->sc_npcomp = EHCI_HCS_N_PCC(sparams);
        if (EHCI_HCS_N_CC(sparams) != sc->sc_ncomp) {
-               printf("%s: wrong number of companions (%d != %d)\n",
+               aprint_error("%s: wrong number of companions (%d != %d)\n",
                       USBDEVNAME(sc->sc_bus.bdev),
                       EHCI_HCS_N_CC(sparams), sc->sc_ncomp);
                return (USBD_IOERROR);
        }
        if (sc->sc_ncomp > 0) {
-               printf("%s: companion controller%s, %d port%s each:",
+               aprint_normal("%s: companion controller%s, %d port%s each:",
                    USBDEVNAME(sc->sc_bus.bdev), sc->sc_ncomp!=1 ? "s" : "",
                    EHCI_HCS_N_PCC(sparams),
                    EHCI_HCS_N_PCC(sparams)!=1 ? "s" : "");
                for (i = 0; i < sc->sc_ncomp; i++)
-                       printf(" %s", USBDEVNAME(sc->sc_comps[i]->bdev));
-               printf("\n");
+                       aprint_normal(" %s", USBDEVNAME(sc->sc_comps[i]->bdev));
+               aprint_normal("\n");
        }
        sc->sc_noport = EHCI_HCS_N_PORTS(sparams);
        cparams = EREAD4(sc, EHCI_HCCPARAMS);
@@ -347,7 +347,8 @@
                        break;
        }
        if (hcr) {
-               printf("%s: reset timeout\n", USBDEVNAME(sc->sc_bus.bdev));
+               aprint_error("%s: reset timeout\n",
+                   USBDEVNAME(sc->sc_bus.bdev));
                return (USBD_IOERROR);
        }
 
@@ -426,7 +427,7 @@
                        break;
        }
        if (hcr) {
-               printf("%s: run timeout\n", USBDEVNAME(sc->sc_bus.bdev));
+               aprint_error("%s: run timeout\n", USBDEVNAME(sc->sc_bus.bdev));
                return (USBD_IOERROR);
        }
 



Home | Main Index | Thread Index | Old Index