From: Nikita Ermakov <coffe92@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH] Output information about device look up failure.
Date: Wed, 22 Jan 2020 01:10:05 +0300 [thread overview]
Message-ID: <20200121221005.9303-1-coffe92@gmail.com> (raw)
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 <coffe92@gmail.com>
---
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) {
--
2.24.1
next reply other threads:[~2020-01-21 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-21 22:10 Nikita Ermakov [this message]
2020-01-22 12:05 ` [PATCH] Output information about device look up failure Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200121221005.9303-1-coffe92@gmail.com \
--to=coffe92@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.