]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
disk: part: add the device search failed log msg
authorOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
Fri, 8 Apr 2022 08:07:13 +0000 (10:07 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
Add missing error message to blk_get_device_part_str.

Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
disk/part.c

index b95405bb498f38428eabd335124f4bd3fbc19438..79955c7fb0002db1d2190087affd5c5bb0dfee00 100644 (file)
@@ -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;
        }