mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/Bds: Do not print garbage if the command line argument is empty
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@15478 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4f467fd33b
commit
5aecd34325
|
@ -782,7 +782,9 @@ BootMenuMain (
|
|||
GetAlignedDevicePath ((EFI_DEVICE_PATH*)((UINTN)(&OptionalData->Arguments.LinuxArguments + 1) + CmdLineSize)), TRUE, TRUE);
|
||||
Print(L"\t- Initrd: %s\n", DevicePathTxt);
|
||||
}
|
||||
Print(L"\t- Arguments: %a\n", (&OptionalData->Arguments.LinuxArguments + 1));
|
||||
if (ReadUnaligned16 (&OptionalData->Arguments.LinuxArguments.CmdLineSize) > 0) {
|
||||
Print(L"\t- Arguments: %a\n", (&OptionalData->Arguments.LinuxArguments + 1));
|
||||
}
|
||||
}
|
||||
|
||||
switch (LoaderType) {
|
||||
|
|
Loading…
Reference in New Issue