summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/controller')
-rw-r--r--sys/dev/usb/controller/atmegadci.c6
-rw-r--r--sys/dev/usb/controller/avr32dci.c5
-rw-r--r--sys/dev/usb/controller/musb_otg.c4
-rw-r--r--sys/dev/usb/controller/usb_controller.c6
4 files changed, 12 insertions, 9 deletions
diff --git a/sys/dev/usb/controller/atmegadci.c b/sys/dev/usb/controller/atmegadci.c
index 1ee8423..adbd972 100644
--- a/sys/dev/usb/controller/atmegadci.c
+++ b/sys/dev/usb/controller/atmegadci.c
@@ -1192,7 +1192,8 @@ atmegadci_clear_stall_sub(struct atmegadci_softc *sc, uint8_t ep_no,
temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
if (!(temp & ATMEGA_UESTA0X_CFGOK)) {
- DPRINTFN(0, "Chip rejected configuration\n");
+ device_printf(sc->sc_bus.bdev,
+ "Chip rejected configuration\n");
}
} while (0);
}
@@ -1914,7 +1915,8 @@ tr_handle_clear_port_feature:
/* check valid config */
temp = ATMEGA_READ_1(sc, ATMEGA_UESTA0X);
if (!(temp & ATMEGA_UESTA0X_CFGOK)) {
- DPRINTFN(0, "Chip rejected EP0 configuration\n");
+ device_printf(sc->sc_bus.bdev,
+ "Chip rejected EP0 configuration\n");
}
break;
case UHF_C_PORT_SUSPEND:
diff --git a/sys/dev/usb/controller/avr32dci.c b/sys/dev/usb/controller/avr32dci.c
index 36980ad..8abe46c 100644
--- a/sys/dev/usb/controller/avr32dci.c
+++ b/sys/dev/usb/controller/avr32dci.c
@@ -1160,7 +1160,7 @@ avr32dci_clear_stall_sub(struct avr32dci_softc *sc, uint8_t ep_no,
temp = AVR32_READ_4(sc, AVR32_EPTCFG(ep_no));
if (!(temp & AVR32_EPTCFG_EPT_MAPD)) {
- DPRINTFN(0, "Chip rejected configuration\n");
+ device_printf(sc->sc_bus.bdev, "Chip rejected configuration\n");
} else {
AVR32_WRITE_4(sc, AVR32_EPTCTLENB(ep_no),
AVR32_EPTCTL_EPT_ENABL);
@@ -1840,7 +1840,8 @@ tr_handle_clear_port_feature:
temp = AVR32_READ_4(sc, AVR32_EPTCFG(0));
if (!(temp & AVR32_EPTCFG_EPT_MAPD)) {
- DPRINTFN(0, "Chip rejected configuration\n");
+ device_printf(sc->sc_bus.bdev,
+ "Chip rejected configuration\n");
} else {
AVR32_WRITE_4(sc, AVR32_EPTCTLENB(0),
AVR32_EPTCTL_EPT_ENABL);
diff --git a/sys/dev/usb/controller/musb_otg.c b/sys/dev/usb/controller/musb_otg.c
index 00fc7cc..987d3f6 100644
--- a/sys/dev/usb/controller/musb_otg.c
+++ b/sys/dev/usb/controller/musb_otg.c
@@ -1781,8 +1781,8 @@ musbotg_init(struct musbotg_softc *sc)
dynfifo = (sc->sc_conf_data & MUSB2_MASK_CD_DYNFIFOSZ) ? 1 : 0;
if (dynfifo) {
- DPRINTFN(0, "Dynamic FIFO sizing detected! "
- "Assuming 16Kbytes of FIFO RAM\n");
+ device_printf(sc->sc_bus.bdev, "Dynamic FIFO sizing detected, "
+ "assuming 16Kbytes of FIFO RAM\n");
}
DPRINTFN(2, "HW version: 0x%04x\n",
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c
index fe59e06..eb961fc 100644
--- a/sys/dev/usb/controller/usb_controller.c
+++ b/sys/dev/usb/controller/usb_controller.c
@@ -130,7 +130,7 @@ usb_attach(device_t dev)
DPRINTF("\n");
if (bus == NULL) {
- DPRINTFN(0, "USB device has no ivars\n");
+ device_printf(dev, "USB device has no ivars\n");
return (ENXIO);
}
@@ -343,7 +343,7 @@ usb_bus_attach(struct usb_proc_msg *pm)
break;
default:
- device_printf(bus->bdev, "Unsupported USB revision!\n");
+ device_printf(bus->bdev, "Unsupported USB revision\n");
return;
}
@@ -530,7 +530,7 @@ usb_bus_mem_alloc_all(struct usb_bus *bus, bus_dma_tag_t dmat,
(bus->devices_max < USB_MIN_DEVICES) ||
(bus->devices == NULL)) {
DPRINTFN(0, "Devices field has not been "
- "initialised properly!\n");
+ "initialised properly\n");
bus->alloc_failed = 1; /* failure */
}
#if USB_HAVE_BUSDMA
OpenPOWER on IntegriCloud