git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12316
6f19259b-4bc3-4df7-8a09-
765794883524
CHAR16* DevicePathTxt;\r
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL* DevicePathToTextProtocol;\r
\r
CHAR16* DevicePathTxt;\r
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL* DevicePathToTextProtocol;\r
\r
- Status = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);\r
+ Status = gBS->LocateProtocol (&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);\r
ASSERT_EFI_ERROR(Status);\r
ASSERT_EFI_ERROR(Status);\r
- DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText((*SupportedBootDevice)->DevicePathProtocol,TRUE,TRUE);\r
+ DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText ((*SupportedBootDevice)->DevicePathProtocol,TRUE,TRUE);\r
\r
Print(L"\t- %s\n",DevicePathTxt);\r
\r
\r
Print(L"\t- %s\n",DevicePathTxt);\r
\r
Status = EFI_ABORTED;\r
goto EXIT;\r
} else if ((SupportedDeviceSelected == 0) || (SupportedDeviceSelected > SupportedDeviceCount)) {\r
Status = EFI_ABORTED;\r
goto EXIT;\r
} else if ((SupportedDeviceSelected == 0) || (SupportedDeviceSelected > SupportedDeviceCount)) {\r
- Print(L"Invalid input (max %d)\n",SupportedDeviceSelected);\r
+ Print(L"Invalid input (max %d)\n",SupportedDeviceCount);\r
SupportedDeviceSelected = 0;\r
}\r
}\r
SupportedDeviceSelected = 0;\r
}\r
}\r
// Get the structure of the Boot device to delete\r
Index = 1;\r
for (Entry = GetFirstNode (BootOptionsList);\r
// Get the structure of the Boot device to delete\r
Index = 1;\r
for (Entry = GetFirstNode (BootOptionsList);\r
- !IsNull (BootOptionsList,Entry);\r
+ !IsNull (BootOptionsList, Entry);\r
Entry = GetNextNode (BootOptionsList,Entry)\r
)\r
{\r
Entry = GetNextNode (BootOptionsList,Entry)\r
)\r
{\r
BootOption = BootOptionEntry->BdsLoadOption;\r
\r
// Get the device support for this Boot Option\r
BootOption = BootOptionEntry->BdsLoadOption;\r
\r
// Get the device support for this Boot Option\r
- Status = BootDeviceGetDeviceSupport (BootOption,&DeviceSupport);\r
+ Status = BootDeviceGetDeviceSupport (BootOption, &DeviceSupport);\r
if (EFI_ERROR(Status)) {\r
if (EFI_ERROR(Status)) {\r
- Print(L"Impossible to retrieve the supported device for the update\n");\r
+ Print(L"Not possible to retrieve the supported device for the update\n");\r
return EFI_UNSUPPORTED;\r
}\r
\r
return EFI_UNSUPPORTED;\r
}\r
\r
}\r
return EFI_SUCCESS;\r
} else if ((OptionSelected > 0) && (OptionSelected <= BootManagerEntryCount)) {\r
}\r
return EFI_SUCCESS;\r
} else if ((OptionSelected > 0) && (OptionSelected <= BootManagerEntryCount)) {\r
- Status = BootManagerEntries[OptionSelected-1].Callback (BootOptionsList);\r
+ BootManagerEntries[OptionSelected-1].Callback (BootOptionsList);\r
{\r
BootOption = LOAD_OPTION_FROM_LINK(Entry);\r
\r
{\r
BootOption = LOAD_OPTION_FROM_LINK(Entry);\r
\r
- Print(L"[%d] %s\n",OptionCount,BootOption->Description);\r
+ Print(L"[%d] %s\n", OptionCount, BootOption->Description);\r
\r
DEBUG_CODE_BEGIN();\r
CHAR16* DevicePathTxt;\r
\r
DEBUG_CODE_BEGIN();\r
CHAR16* DevicePathTxt;\r
UINTN CmdLineSize;\r
ARM_BDS_LOADER_TYPE LoaderType;\r
\r
UINTN CmdLineSize;\r
ARM_BDS_LOADER_TYPE LoaderType;\r
\r
- Status = gBS->LocateProtocol(&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);\r
+ Status = gBS->LocateProtocol (&gEfiDevicePathToTextProtocolGuid, NULL, (VOID **)&DevicePathToTextProtocol);\r
if (EFI_ERROR(Status)) {\r
// You must provide an implementation of DevicePathToTextProtocol in your firmware (eg: DevicePathDxe)\r
DEBUG((EFI_D_ERROR,"Error: Bds requires DevicePathToTextProtocol\n"));\r
return Status;\r
}\r
if (EFI_ERROR(Status)) {\r
// You must provide an implementation of DevicePathToTextProtocol in your firmware (eg: DevicePathDxe)\r
DEBUG((EFI_D_ERROR,"Error: Bds requires DevicePathToTextProtocol\n"));\r
return Status;\r
}\r
- DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText(BootOption->FilePathList,TRUE,TRUE);\r
+ DevicePathTxt = DevicePathToTextProtocol->ConvertDevicePathToText (BootOption->FilePathList, TRUE, TRUE);\r
\r
Print(L"\t- %s\n",DevicePathTxt);\r
\r
\r
Print(L"\t- %s\n",DevicePathTxt);\r
\r