[U-Boot] [PATCH v2 4/5] usb: host: replace printf() by error() in ehci-generic

patrice.chotard at st.com patrice.chotard at st.com
Fri May 12 17:27:56 UTC 2017


From: Patrice Chotard <patrice.chotard at st.com>

Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---

v2:	_ create this independant path for printf() replacement

 drivers/usb/host/ehci-generic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
index 0000808..39b56de 100644
--- a/drivers/usb/host/ehci-generic.c
+++ b/drivers/usb/host/ehci-generic.c
@@ -74,7 +74,7 @@ static int ehci_usb_probe(struct udevice *dev)
 		if (ret < 0)
 			break;
 		if (clk_enable(&clk)) {
-			printf("failed to enable clock %d\n", i);
+			error("failed to enable clock %d\n", i);
 			clk_free(&clk);
 			goto clk_err;
 		}
@@ -88,7 +88,7 @@ static int ehci_usb_probe(struct udevice *dev)
 		if (ret < 0)
 			break;
 		if (reset_deassert(&reset)) {
-			printf("failed to deassert reset %d\n", i);
+			error("failed to deassert reset %d\n", i);
 			reset_free(&reset);
 			goto reset_err;
 		}
-- 
1.9.1



More information about the U-Boot mailing list