[PATCH 26/26] dm: core: Add logging when lists_bind_fdt() fails
Simon Glass
sjg at chromium.org
Sat Dec 19 18:40:18 CET 2020
It is useful to see the error code when this fails. Add logging for this
function.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/core/lists.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/core/lists.c b/drivers/core/lists.c
index 426444db3a9..e214306b904 100644
--- a/drivers/core/lists.c
+++ b/drivers/core/lists.c
@@ -251,7 +251,7 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp,
if (ret) {
dm_warn("Error binding driver '%s': %d\n", entry->name,
ret);
- return ret;
+ return log_msg_ret("bind", ret);
} else {
found = true;
if (devp)
--
2.29.2.684.gfbc64c5ab5-goog
More information about the U-Boot
mailing list