]> git.baikalelectronics.ru Git - uboot.git/commit
bootstd: Tidy up reporting of errors
authorSimon Glass <sjg@chromium.org>
Wed, 10 May 2023 22:34:26 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 13 May 2023 13:52:32 +0000 (09:52 -0400)
commitd462c69e1d88b5beab52ec6fefc904bb5d67e6c0
treead0e08049b5acf510ab6f56fe9d30cd1188c47e2
parent852077b12fdd03e9fa54ab0a077a62a5fca17f82
bootstd: Tidy up reporting of errors

In a few cases the error handling is not quite right. Make sure we
return the actual error in distro_efi_read_bootflow_file() rather than
-EINVAL. Return -IO when a file cannot be read. Also show the error name
if available.

This does not change operation, but does make it easier to diagnose
problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth-uclass.c
boot/bootmeth_efi.c
cmd/bootflow.c
test/boot/bootflow.c