aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt2021-06-12 00:01:44 +0200
committerHeinrich Schuchardt2021-06-28 19:57:13 +0200
commit2b8723c5a11f03f152972b2879447b9a77c53aac (patch)
tree9249e9bff28a1c4cde8f037f7f44c30624fe0aa5 /cmd
parent7891fe675d03f2407b040c472ae76050bc88c24e (diff)
efidebug: correct display of BootOrder
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>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/efidebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index c6352719dd8..8211a589acf 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,