diff options
author | Dave Frodin <dave.frodin@se-eng.com> | 2012-12-11 13:08:07 -0700 |
---|---|---|
committer | Anton Kochkov <anton.kochkov@gmail.com> | 2012-12-18 19:59:22 +0100 |
commit | 6bf11cf50c2b682f8c09a53af774588123b250b6 (patch) | |
tree | 8b6b43411f551cff98623c3606c74e7a1a3413b9 /payloads/libpayload/drivers/usb/ehci_rh.c | |
parent | 8024b655507441646b2158fc61532364cbe65972 (diff) | |
download | coreboot-6bf11cf50c2b682f8c09a53af774588123b250b6.tar.xz |
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_rh.c')
-rw-r--r-- | payloads/libpayload/drivers/usb/ehci_rh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/ehci_rh.c b/payloads/libpayload/drivers/usb/ehci_rh.c index f58e1cf36c..89828040d1 100644 --- a/payloads/libpayload/drivers/usb/ehci_rh.c +++ b/payloads/libpayload/drivers/usb/ehci_rh.c @@ -107,7 +107,7 @@ ehci_rh_scanport (usbdev_t *dev, int port) while ((RH_INST(dev)->ports[port] & P_PORT_RESET) && timeout--) udelay(100); if (RH_INST(dev)->ports[port] & P_PORT_RESET) { - printf("Error: ehci_rh: port reset timed out.\n"); + usb_debug("Error: ehci_rh: port reset timed out.\n"); return; } |