diff options
author | Simon Glass <sjg@chromium.org> | 2023-05-10 16:34:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-13 09:52:32 -0400 |
commit | c8894348454aef103a29e5afbfe45c0959b9d45b (patch) | |
tree | ad0e08049b5acf510ab6f56fe9d30cd1188c47e2 /cmd | |
parent | d8d40bc392d1ce60660e479a73970666e6a8a7be (diff) | |
download | u-boot-c8894348454aef103a29e5afbfe45c0959b9d45b.zip u-boot-c8894348454aef103a29e5afbfe45c0959b9d45b.tar.gz u-boot-c8894348454aef103a29e5afbfe45c0959b9d45b.tar.bz2 |
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>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootflow.c b/cmd/bootflow.c index 6cc58e4..5c61286 100644 --- a/cmd/bootflow.c +++ b/cmd/bootflow.c @@ -55,7 +55,7 @@ static void report_bootflow_err(struct bootflow *bflow, int err) break; } - printf(", err=%d\n", err); + printf(", err=%dE\n", err); } /** |