From patchwork Tue Jan 21 22:10:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Ermakov X-Patchwork-Id: 239921 List-Id: U-Boot discussion From: coffe92 at gmail.com (Nikita Ermakov) Date: Wed, 22 Jan 2020 01:10:05 +0300 Subject: [PATCH] Output information about device look up failure. Message-ID: <20200121221005.9303-1-coffe92@gmail.com> In the case of error while device look up (e.g. wrong interface type was specified) put a message about it even if debug was not enable. Signed-off-by: Nikita Ermakov --- disk/part.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disk/part.c b/disk/part.c index 8982ef3bae..280e3e4f42 100644 --- a/disk/part.c +++ b/disk/part.c @@ -513,7 +513,10 @@ 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("** Look up for the device %s %s failed **\n", ifname, dev_str); goto cleanup; + } /* Convert partition ID string to number */ if (!part_str || !*part_str) {