disk: part: add the device search failed log msg

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>
This commit is contained in:
Oleksii Bidnichenko 2022-04-08 10:07:13 +02:00 committed by Stefano Babic
parent aa6f57d877
commit 192e7012c2

View 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;
}