From 5389972a63922952ee04784284668e04ac99772b Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Fri, 11 Apr 2014 11:00:47 +0000 Subject: ArmPlatformPkg: Print arguments for EFI Application Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15456 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPlatformPkg/Bds/BootMenu.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ArmPlatformPkg') 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(); -- cgit v1.2.3