summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-09-10 13:04:43 +0300
committerOleksii Bidnichenko <oleksii.bidnichenko@toradex.com>2021-09-10 15:28:53 +0300
commit38ab07804fab70302a021c350c3b00f988d7d9de (patch)
treedc0db47105157b42ae857c2c50279a9fba296236
parentbbb0acc44b2b90a6eaaa760c64c0ec1e5938bea0 (diff)
disk: part: add the device search failed log msgtoradex_2020.07
Add missing error message to blk_get_device_part_str. Related-to: ELB-4082 Signed-off-by: Oleksii Bidnichenko <oleksii.bidnichenko@toradex.com> (cherry picked from commit 866d51e3fde2771d0e83a6ea831b84a2cbc66fd1)
-rw-r--r--disk/part.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c
index f6a31025dc..ab74ef159c 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -516,8 +516,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) {