mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
usb: host: ehci-generic: replace printf() by error()
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>
This commit is contained in:
parent
642346ae26
commit
10bb775e92
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue