summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 10:56:14 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 10:56:14 +0000
commitff7666c51118f98f0c8412c45abe9ed9695cd1aa (patch)
tree53c5ce7666087decb29fba89782445fe559fad83
parentaa863d357aa830c8068b4539975fe17eb4359d48 (diff)
downloadedk2-platforms-ff7666c51118f98f0c8412c45abe9ed9695cd1aa.tar.xz
ArmPlatformPkg/Bds: Minor fixes and coding style changes
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12316 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--ArmPlatformPkg/Bds/BootMenu.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c
index ad2e914554..3bfe2f6152 100644
--- a/ArmPlatformPkg/Bds/BootMenu.c
+++ b/ArmPlatformPkg/Bds/BootMenu.c
@@ -53,9 +53,9 @@ SelectBootDevice (
CHAR16* DevicePathTxt;
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL* DevicePathToTextProtocol;
- Status = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);
+ Status = gBS->LocateProtocol (&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);
ASSERT_EFI_ERROR(Status);
- DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText((*SupportedBootDevice)->DevicePathProtocol,TRUE,TRUE);
+ DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText ((*SupportedBootDevice)->DevicePathProtocol,TRUE,TRUE);
Print(L"\t- %s\n",DevicePathTxt);
@@ -82,7 +82,7 @@ SelectBootDevice (
Status = EFI_ABORTED;
goto EXIT;
} else if ((SupportedDeviceSelected == 0) || (SupportedDeviceSelected > SupportedDeviceCount)) {
- Print(L"Invalid input (max %d)\n",SupportedDeviceSelected);
+ Print(L"Invalid input (max %d)\n",SupportedDeviceCount);
SupportedDeviceSelected = 0;
}
}
@@ -285,7 +285,7 @@ BootMenuSelectBootOption (
// Get the structure of the Boot device to delete
Index = 1;
for (Entry = GetFirstNode (BootOptionsList);
- !IsNull (BootOptionsList,Entry);
+ !IsNull (BootOptionsList, Entry);
Entry = GetNextNode (BootOptionsList,Entry)
)
{
@@ -351,9 +351,9 @@ BootMenuUpdateBootOption (
BootOption = BootOptionEntry->BdsLoadOption;
// Get the device support for this Boot Option
- Status = BootDeviceGetDeviceSupport (BootOption,&DeviceSupport);
+ Status = BootDeviceGetDeviceSupport (BootOption, &DeviceSupport);
if (EFI_ERROR(Status)) {
- Print(L"Impossible to retrieve the supported device for the update\n");
+ Print(L"Not possible to retrieve the supported device for the update\n");
return EFI_UNSUPPORTED;
}
@@ -463,7 +463,7 @@ BootMenuManager (
}
return EFI_SUCCESS;
} else if ((OptionSelected > 0) && (OptionSelected <= BootManagerEntryCount)) {
- Status = BootManagerEntries[OptionSelected-1].Callback (BootOptionsList);
+ BootManagerEntries[OptionSelected-1].Callback (BootOptionsList);
}
}
@@ -529,7 +529,7 @@ BootMenuMain (
{
BootOption = LOAD_OPTION_FROM_LINK(Entry);
- Print(L"[%d] %s\n",OptionCount,BootOption->Description);
+ Print(L"[%d] %s\n", OptionCount, BootOption->Description);
DEBUG_CODE_BEGIN();
CHAR16* DevicePathTxt;
@@ -538,13 +538,13 @@ BootMenuMain (
UINTN CmdLineSize;
ARM_BDS_LOADER_TYPE LoaderType;
- Status = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);
+ Status = gBS->LocateProtocol (&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);
if (EFI_ERROR(Status)) {
// You must provide an implementation of DevicePathToTextProtocol in your firmware (eg: DevicePathDxe)
DEBUG((EFI_D_ERROR,"Error: Bds requires DevicePathToTextProtocol\n"));
return Status;
}
- DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText(BootOption->FilePathList,TRUE,TRUE);
+ DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText (BootOption->FilePathList, TRUE, TRUE);
Print(L"\t- %s\n",DevicePathTxt);