]> git.sur5r.net Git - u-boot/commitdiff
usb: host: ehci-generic: replace printf() by error()
authorPatrice Chotard <patrice.chotard@st.com>
Tue, 18 Jul 2017 09:57:09 +0000 (11:57 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:09 +0000 (23:34 +0200)
this allows to get file, line and function location
of the current error message.

Signed-off-by: patrice chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-generic.c

index fb7846289372b0f8a0c67c0f7539ee8563afd424..2116ae1f1105752ebe0c50260c5152739c2694cd 100644 (file)
@@ -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);
        }