[PATCH v1 18/24] disk: part: add the device search failed log msg

Marcel Ziswiler marcel at ziswiler.com
Fri Apr 8 10:07:13 CEST 2022


From: Oleksii Bidnichenko <oleksii.bidnichenko at toradex.com>

Add missing error message to blk_get_device_part_str.

Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko at toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
---

 disk/part.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/disk/part.c b/disk/part.c
index 49e39a24e86..16e8c94eebc 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -527,6 +527,8 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
 	/* Look up the device */
 	dev = blk_get_device_by_str(ifname, dev_str, dev_desc);
 	if (dev < 0) {
+		printf("** Bad device specification %s %s **\n",
+		       ifname, dev_str);
 		ret = dev;
 		goto cleanup;
 	}
-- 
2.34.1



More information about the U-Boot mailing list