[U-Boot] [PATCH] efi_loader: bootmgr: print a message when loading from BootNext failed

AKASHI Takahiro takahiro.akashi at linaro.org
Tue May 14 04:58:24 UTC 2019


If a user defines BootNext but not BootOrder and loading from BootNext
fails, you will see only a message like this:
	BootOrder not defined

This may confuse a user. Adding an error message will be helpful.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 lib/efi_loader/efi_bootmgr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c
index 7bf51874c1c1..6a4a478473c3 100644
--- a/lib/efi_loader/efi_bootmgr.c
+++ b/lib/efi_loader/efi_bootmgr.c
@@ -215,6 +215,8 @@ efi_status_t efi_bootmgr_load(efi_handle_t *handle)
 				ret = try_load_entry(bootnext, handle);
 				if (ret == EFI_SUCCESS)
 					return ret;
+				printf("Loading from Boot%04X failed, falling back into BootOrder...\n",
+				       bootnext);
 			}
 		} else {
 			printf("Deleting BootNext failed\n");
-- 
2.21.0



More information about the U-Boot mailing list