efi: Improve logging in efi_disk
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:32 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commit3722cc973f092a6fd1724ea06bd18b205e678ddf
treed8c8ca94061f2bfc483785c47fa132d3891a6415
parent19efd43b0f3a72f233cd1a93ed1f5b48f3a6575a
efi: Improve logging in efi_disk

When this fails it can be time-consuming to debug. Add some debugging
to help with this. Also try to return error codes instead of just using
-1.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/efi_loader/efi_disk.c