mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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
This commit is contained in:
parent
135b09a2c2
commit
5389972a63
@ -679,8 +679,9 @@ BootMenuMain (
|
|||||||
UINTN BootOptionSelected;
|
UINTN BootOptionSelected;
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
UINTN BootMainEntryCount;
|
UINTN BootMainEntryCount;
|
||||||
|
BOOLEAN IsUnicode;
|
||||||
|
|
||||||
BootOption = NULL;
|
BootOption = NULL;
|
||||||
BootMainEntryCount = sizeof(BootMainEntries) / sizeof(struct BOOT_MAIN_ENTRY);
|
BootMainEntryCount = sizeof(BootMainEntries) / sizeof(struct BOOT_MAIN_ENTRY);
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
@ -746,6 +747,14 @@ BootMenuMain (
|
|||||||
default:
|
default:
|
||||||
Print(L"\t- LoaderType: Not recognized (%d)\n", LoaderType);
|
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);
|
FreePool(DevicePathTxt);
|
||||||
DEBUG_CODE_END();
|
DEBUG_CODE_END();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user