Revision: 14175
          http://edk2.svn.sourceforge.net/edk2/?rev=14175&view=rev
Author:   oliviermartin
Date:     2013-03-12 00:41:52 +0000 (Tue, 12 Mar 2013)
Log Message:
-----------
ArmPlatformPkg/BootMenu.c: Print loader type in a more friendly way.

In debug mode, the loader type (EFI application or linux kernel with
FDT/ATAG support) is displayed in UEFI boot menu.

Before this patch it was printed as a decimal number which is
meaningful to the user only if he knows the values of the
ARM_BDS_LOADER_TYPE enumeration type in the source code...

This patch modifies the boot menu so that it also prints a
user-friendly string describing the loader type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/Bds/BootMenu.c

Modified: trunk/edk2/ArmPlatformPkg/Bds/BootMenu.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Bds/BootMenu.c    2013-03-12 00:41:05 UTC (rev 
14174)
+++ trunk/edk2/ArmPlatformPkg/Bds/BootMenu.c    2013-03-12 00:41:52 UTC (rev 
14175)
@@ -676,7 +676,23 @@
             }
             Print(L"\t- Arguments: %a\n", 
(&OptionalData->Arguments.LinuxArguments + 1));
           }
-          Print(L"\t- LoaderType: %d\n", LoaderType);
+
+          switch (LoaderType) {
+            case BDS_LOADER_EFI_APPLICATION:
+              Print(L"\t- LoaderType: EFI Application\n");
+              break;
+
+            case BDS_LOADER_KERNEL_LINUX_ATAG:
+              Print(L"\t- LoaderType: Linux kernel with ATAG support\n");
+              break;
+
+            case BDS_LOADER_KERNEL_LINUX_FDT:
+              Print(L"\t- LoaderType: Linux kernel with FDT support\n");
+              break;
+
+            default:
+              Print(L"\t- LoaderType: Not recognized (%d)\n", LoaderType);
+          }
         }
         FreePool(DevicePathTxt);
       DEBUG_CODE_END();

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to