summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-03-12 00:41:52 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-03-12 00:41:52 +0000
commit7135d76d56ae96ba2fc05d0f0369b2b54ce0b05f (patch)
tree873d84508cc57077c40e6bff28ccda10501776b3 /ArmPlatformPkg
parentb9ee70610b809fc334dc19e8fadcb7bbd61d75d7 (diff)
downloadedk2-7135d76d56ae96ba2fc05d0f0369b2b54ce0b05f.tar.gz
edk2-7135d76d56ae96ba2fc05d0f0369b2b54ce0b05f.tar.bz2
edk2-7135d76d56ae96ba2fc05d0f0369b2b54ce0b05f.zip
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 <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14175 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r--ArmPlatformPkg/Bds/BootMenu.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c
index 12463194d0..03f695b170 100644
--- a/ArmPlatformPkg/Bds/BootMenu.c
+++ b/ArmPlatformPkg/Bds/BootMenu.c
@@ -676,7 +676,23 @@ BootMenuMain (
}
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();