Re: [PATCH v2] bootstd: Tidy up reporting of errors

2023-05-14 Thread Tom Rini
On Wed, May 10, 2023 at 04:34:26PM -0600, Simon Glass wrote: > 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. >

[PATCH v2] bootstd: Tidy up reporting of errors

2023-05-10 Thread Simon Glass
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