From: Simon Glass Date: Tue, 23 Jun 2015 21:38:36 +0000 (-0600) Subject: dm: core: Use debug() instead of printf() for failures X-Git-Tag: v2015.10-rc1~169 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3039811e6584d55c6a330a7cf409f4dcea13ee31;p=u-boot 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 --- diff --git a/drivers/core/lists.c b/drivers/core/lists.c index 0c49d99f47..2e52500ef2 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; }