]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efidebug: correct display of BootOrder
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 11 Jun 2021 22:01:44 +0000 (00:01 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 28 Jun 2021 17:57:13 +0000 (19:57 +0200)
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

index c6352719dd8a0388d896b0dde1d4e5a3c8fd42b5..8211a589acf592b0a77fc6b40ede17fb06a71ce8 100644 (file)
@@ -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,