Author: imp
Date: Mon Mar 12 21:40:19 2018
New Revision: 330814
URL: https://svnweb.freebsd.org/changeset/base/330814

Log:
  Star BootCurrent entry when booting.
  
  Sponsored by: Netflix

Modified:
  head/stand/efi/boot1/boot1.c

Modified: head/stand/efi/boot1/boot1.c
==============================================================================
--- head/stand/efi/boot1/boot1.c        Mon Mar 12 21:40:14 2018        
(r330813)
+++ head/stand/efi/boot1/boot1.c        Mon Mar 12 21:40:19 2018        
(r330814)
@@ -474,7 +474,8 @@ efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABLE *Xsystab)
        efi_global_getenv("BootOrder", &boot_order, &sz);
        printf("   BootOrder:");
        for (i = 0; i < sz / sizeof(boot_order[0]); i++)
-               printf(" %04x", boot_order[i]);
+               printf(" %04x%s", boot_order[i],
+                   boot_order[i] == boot_current ? "[*]" : "");
        printf("\n");
 
 #ifdef TEST_FAILURE
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to