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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user