mirror of https://github.com/acidanthera/audk.git
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,6 +679,7 @@ BootMenuMain (
|
|||
UINTN BootOptionSelected;
|
||||
UINTN Index;
|
||||
UINTN BootMainEntryCount;
|
||||
BOOLEAN IsUnicode;
|
||||
|
||||
BootOption = NULL;
|
||||
BootMainEntryCount = sizeof(BootMainEntries) / sizeof(struct BOOT_MAIN_ENTRY);
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue