diff options
author | Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com> | 2021-09-10 13:04:43 +0300 |
---|---|---|
committer | Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com> | 2021-09-10 12:35:03 +0000 |
commit | 3f2bd202ae7d5f3e91da8793113c44753e01d068 (patch) | |
tree | c4a3c43ba800bc2067d433e2047e5d44e33cf395 | |
parent | 3b3cd650c6ee40aa7afb2d6f1fa97c799c639ebb (diff) |
disk: part: add the device search failed log msg
Add missing error message to blk_get_device_part_str.
Related-to: ELB-4082
Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com>
-rw-r--r-- | disk/part.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c index 4cc2fc19f7e..d349e4a4355 100644 --- a/disk/part.c +++ b/disk/part.c @@ -513,8 +513,11 @@ 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) + if (dev < 0) { + printf("** Bad device specification %s %s **\n", + ifname, dev_str); goto cleanup; + } /* Convert partition ID string to number */ if (!part_str || !*part_str) { |