mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
dm: core: Use debug() instead of printf() for failures
To avoid bloating SPL code, use debug() where possible in the driver model core code. The error code is already returned, and can be investigated as needed. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
304fbef156
commit
3039811e65
1 changed files with 3 additions and 3 deletions
|
|
@ -86,13 +86,13 @@ int device_bind_driver_to_node(struct udevice *parent, const char *drv_name,
|
|||
|
||||
drv = lists_driver_lookup_name(drv_name);
|
||||
if (!drv) {
|
||||
printf("Cannot find driver '%s'\n", drv_name);
|
||||
debug("Cannot find driver '%s'\n", drv_name);
|
||||
return -ENOENT;
|
||||
}
|
||||
ret = device_bind(parent, drv, dev_name, NULL, node, devp);
|
||||
if (ret) {
|
||||
printf("Cannot create device named '%s' (err=%d)\n",
|
||||
dev_name, ret);
|
||||
debug("Cannot create device named '%s' (err=%d)\n",
|
||||
dev_name, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue