1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

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>
This commit is contained in:
Simon Glass
2023-05-10 16:34:26 -06:00
committed by Tom Rini
parent d8d40bc392
commit c889434845
4 changed files with 8 additions and 8 deletions

View File

@@ -235,7 +235,7 @@ static int distro_efi_read_bootflow_file(struct udevice *dev,
ret = efiload_read_file(desc, bflow);
if (ret)
return log_msg_ret("read", -EINVAL);
return log_msg_ret("read", ret);
fdt_addr = env_get_hex("fdt_addr_r", 0);