diff mbox series

[1/1] efidebug: correct display of BootOrder

Message ID 20210611220629.45078-1-xypron.glpk@gmx.de
State Accepted
Commit 2b8723c5a11f03f152972b2879447b9a77c53aac
Delegated to: Heinrich Schuchardt
Headers show
Series [1/1] efidebug: correct display of BootOrder | expand

Commit Message

Heinrich Schuchardt June 11, 2021, 10:06 p.m. UTC
Display the number of the boot option and not its index.

Fixes: 2ecee31017bf ("efi_loader: use efi_create_indexed_name()")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 cmd/efidebug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.32.0
diff mbox series

Patch

diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index c6352719dd..8211a589ac 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -1340,7 +1340,7 @@  static int show_efi_boot_order(void)
 	num = size / sizeof(u16);
 	for (i = 0; i < num; i++) {
 		efi_create_indexed_name(var_name16, sizeof(var_name16),
-					"Boot", i);
+					"Boot", bootorder[i]);

 		size = 0;
 		ret = EFI_CALL(efi_get_variable(var_name16,