diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-04-22 10:13:38 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-04-22 10:13:38 +0000 |
commit | 5aecd343253d06393f3e56be0fd3fe8aa95eef99 (patch) | |
tree | a55e11efe61094a44e2ac800730e26be9d6c8b29 /ArmPlatformPkg | |
parent | 4f467fd33b2fc682ed5f1932453d47110345534e (diff) | |
download | edk2-platforms-5aecd343253d06393f3e56be0fd3fe8aa95eef99.tar.xz |
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
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r-- | ArmPlatformPkg/Bds/BootMenu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c index 1c923e902e..e10f574103 100644 --- a/ArmPlatformPkg/Bds/BootMenu.c +++ b/ArmPlatformPkg/Bds/BootMenu.c @@ -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) {
|