From 3f2bd202ae7d5f3e91da8793113c44753e01d068 Mon Sep 17 00:00:00 2001 From: Oleksii Bidnichenko Date: Fri, 10 Sep 2021 13:04:43 +0300 Subject: 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 --- disk/part.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/disk/part.c b/disk/part.c index 4cc2fc19f7..d349e4a435 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) { -- cgit v1.2.3