diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-04-11 11:00:47 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-04-11 11:00:47 +0000 |
commit | 5389972a63922952ee04784284668e04ac99772b (patch) | |
tree | 7c01cf3a19974c4622bec95458a15032e02c5113 /ArmPlatformPkg | |
parent | 135b09a2c26d9c28f02c4d356a62ca8817344e15 (diff) | |
download | edk2-platforms-5389972a63922952ee04784284668e04ac99772b.tar.xz |
ArmPlatformPkg: Print arguments for EFI Application
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15456 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r-- | ArmPlatformPkg/Bds/BootMenu.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c index e00d06e394..419488228d 100644 --- a/ArmPlatformPkg/Bds/BootMenu.c +++ b/ArmPlatformPkg/Bds/BootMenu.c @@ -679,8 +679,9 @@ BootMenuMain ( UINTN BootOptionSelected;
UINTN Index;
UINTN BootMainEntryCount;
+ BOOLEAN IsUnicode;
- BootOption = NULL;
+ BootOption = NULL;
BootMainEntryCount = sizeof(BootMainEntries) / sizeof(struct BOOT_MAIN_ENTRY);
while (TRUE) {
@@ -746,6 +747,14 @@ BootMenuMain ( default:
Print(L"\t- LoaderType: Not recognized (%d)\n", LoaderType);
}
+ } else if (BootOption->OptionalData != NULL) {
+ if (IsPrintableString (BootOption->OptionalData, &IsUnicode)) {
+ if (IsUnicode) {
+ Print (L"\t- Arguments: %s\n", BootOption->OptionalData);
+ } else {
+ AsciiPrint ("\t- Arguments: %a\n", BootOption->OptionalData);
+ }
+ }
}
FreePool(DevicePathTxt);
DEBUG_CODE_END();
|