[U-Boot] [PATCH v9 05/10] usb: host: ehci-generic: replace printf() by error()
patrice.chotard at st.com
patrice.chotard at st.com
Wed Jun 21 12:42:41 UTC 2017
From: Patrice Chotard <patrice.chotard at st.com>
this allows to get file, line and function location
of the current error message.
Signed-off-by: patrice chotard <patrice.chotard at st.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
v9: _ none
v8: _ none
v7: _ none
v6: _ none
v5: _ none
v4: _ none
v3: _ add commit message
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 fb78462..2116ae1 100644
--- a/drivers/usb/host/ehci-generic.c
+++ b/drivers/usb/host/ehci-generic.c
@@ -34,7 +34,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);
}
@@ -46,7 +46,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);
}
--
1.9.1
More information about the U-Boot
mailing list