summaryrefslogtreecommitdiff
path: root/drivers/core/lists.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-23 15:38:36 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:22 -0600
commit3039811e6584d55c6a330a7cf409f4dcea13ee31 (patch)
tree1e26033878dc718c83f1486348dc475a2a3f7266 /drivers/core/lists.c
parent304fbef156b00d8d7005c8b156e64a6632d45008 (diff)
downloadu-boot-imx-3039811e6584d55c6a330a7cf409f4dcea13ee31.zip
u-boot-imx-3039811e6584d55c6a330a7cf409f4dcea13ee31.tar.gz
u-boot-imx-3039811e6584d55c6a330a7cf409f4dcea13ee31.tar.bz2
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>
Diffstat (limited to 'drivers/core/lists.c')
-rw-r--r--drivers/core/lists.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index 0c49d99..2e52500 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -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;
}