]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Report missing labels only when asked
authorSimon Glass <sjg@chromium.org>
Mon, 24 Apr 2023 01:49:47 +0000 (13:49 +1200)
committerTom Rini <trini@konsulko.com>
Wed, 26 Apr 2023 12:43:04 +0000 (08:43 -0400)
commit1736b4af0e8a30aa3e9d0720c07dfb70fb16dceb
tree0db21dfe1280e1247cd6578d7e71ca7ecd5247f3
parentd80bb4f958b01b6e1a3e904fe8e5e40584113938
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>
boot/bootdev-uclass.c
include/bootdev.h
test/boot/bootdev.c