diff options
author | Simon Glass <sjg@chromium.org> | 2023-04-24 13:49:47 +1200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-26 08:43:04 -0400 |
commit | 1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb (patch) | |
tree | 0db21dfe1280e1247cd6578d7e71ca7ecd5247f3 /include/bootdev.h | |
parent | d80bb4f958b01b6e1a3e904fe8e5e40584113938 (diff) | |
download | u-boot-1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb.zip u-boot-1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb.tar.gz u-boot-1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb.tar.bz2 |
bootstd: Report missing labels only when asked
Use the -l flag to indicate whether to report missing uclasses.
Also try to be more helpful when no devices are found. For example, when
we see something 'scsi0' requested and nothing was found, this indicates
that there are no SCSI devices, so show a suitable message.
Move messages out of the low-level functions so that silent operation
is possible.
This means they are never reported unless BOOTSTD_FULL is enabled, since
the -l flag cannot otherwise be set.
Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootdev.h')
-rw-r--r-- | include/bootdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bootdev.h b/include/bootdev.h index b92ff4d..e72ef36 100644 --- a/include/bootdev.h +++ b/include/bootdev.h @@ -258,7 +258,7 @@ int bootdev_find_by_label(const char *label, struct udevice **devp, * @devp: returns the device found, on success * @method_flagsp: If non-NULL, returns any flags implied by the label * (enum bootflow_meth_flags_t), 0 if none. Unset if function fails - * Return: 0 if OK, -EINVAL if the uclass is not supported by this board, + * Return: 0 if OK, -EPFNOSUPPORT if the uclass is not supported by this board, * -ENOENT if there is no device with that number */ int bootdev_find_by_any(const char *name, struct udevice **devp, |