summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/usb/ehci.c
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2012-12-11 13:08:07 -0700
committerAnton Kochkov <anton.kochkov@gmail.com>2012-12-18 19:59:22 +0100
commit6bf11cf50c2b682f8c09a53af774588123b250b6 (patch)
tree8b6b43411f551cff98623c3606c74e7a1a3413b9 /payloads/libpayload/drivers/usb/ehci.c
parent8024b655507441646b2158fc61532364cbe65972 (diff)
libpayload: Use usb_debug() to show USB messages
Previously printf()'s were used to show USB messages which results in lots of USB information being shown when it isn't needed. This will now use the usb_debug() printing funtion that already exists in usb.h. Change-Id: I2199814de3327417417eb2e26a660f4a5557cb9f Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/2044 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com>
Diffstat (limited to 'payloads/libpayload/drivers/usb/ehci.c')
-rw-r--r--payloads/libpayload/drivers/usb/ehci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci.c b/payloads/libpayload/drivers/usb/ehci.c
index 6a1cfb5791..f27658dc0e 100644
--- a/payloads/libpayload/drivers/usb/ehci.c
+++ b/payloads/libpayload/drivers/usb/ehci.c
@@ -206,7 +206,7 @@ static int wait_for_tds(qtd_t *head)
&& timeout--)
udelay(50);
if (timeout < 0) {
- printf("Error: ehci: queue transfer "
+ usb_debug("Error: ehci: queue transfer "
"processing timed out.\n");
return 1;
}
@@ -362,7 +362,7 @@ static int ehci_control (usbdev_t *dev, direction_t dir, int drlen, void *devreq
(EHCI_SETUP << QTD_PID_SHIFT) |
(3 << QTD_CERR_SHIFT);
if (fill_td(cur, devreq, drlen) != drlen) {
- printf("ERROR: couldn't send the entire device request\n");
+ usb_debug("ERROR: couldn't send the entire device request\n");
}
qtd_t *next = memalign(32, sizeof(qtd_t));
cur->next_qtd = virt_to_phys(next);
@@ -379,7 +379,7 @@ static int ehci_control (usbdev_t *dev, direction_t dir, int drlen, void *devreq
(((dir == OUT)?EHCI_OUT:EHCI_IN) << QTD_PID_SHIFT) |
(3 << QTD_CERR_SHIFT);
if (fill_td(cur, data, dalen) != dalen) {
- printf("ERROR: couldn't send the entire control payload\n");
+ usb_debug("ERROR: couldn't send the entire control payload\n");
}
next = memalign(32, sizeof(qtd_t));
cur->next_qtd = virt_to_phys(next);
@@ -556,7 +556,7 @@ static void *ehci_create_intr_queue(
}
}
if (nothing_placed) {
- printf("Error: Failed to place ehci interrupt queue head "
+ usb_debug("Error: Failed to place ehci interrupt queue head "
"into periodic schedule: no space left\n");
ehci_destroy_intr_queue(ep, intrq);
return NULL;