summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Csm/LegacyBootManagerLib
diff options
context:
space:
mode:
authorAntoine Coeur <coeur@gmx.fr>2020-02-07 02:08:08 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-10 22:30:07 +0000
commit48cf40b8c92e164f0785cccf5b9c6815561c8474 (patch)
treed89896500af74ce6b9b97481dc3f531217229b10 /OvmfPkg/Csm/LegacyBootManagerLib
parentf221466ea77a897d0f21e2092d5564249ab828c1 (diff)
downloadedk2-48cf40b8c92e164f0785cccf5b9c6815561c8474.tar.gz
edk2-48cf40b8c92e164f0785cccf5b9c6815561c8474.tar.bz2
edk2-48cf40b8c92e164f0785cccf5b9c6815561c8474.zip
OvmfPkg/Csm: Fix various typos
Fix various typos in documentation, comments and strings. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Antoine Coeur <coeur@gmx.fr> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: David Woodhouse <dwmw2@infradead.org> Acked-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Message-Id: <20200207010831.9046-56-philmd@redhat.com>
Diffstat (limited to 'OvmfPkg/Csm/LegacyBootManagerLib')
-rw-r--r--OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c b/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c
index 6138a32ad7..6ed45785be 100644
--- a/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c
+++ b/OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c
@@ -173,7 +173,7 @@ LegacyBmBuildLegacyDevNameString (
StringDesc = (CHAR8 *) (((UINTN) CurBBSEntry->DescStringSegment << 4) + CurBBSEntry->DescStringOffset);
if (NULL != StringDesc) {
//
- // Only get fisrt 32 characters, this is suggested by BBS spec
+ // Only get first 32 characters, this is suggested by BBS spec
//
CopyMem (StringBufferA, StringDesc, LEGACY_BM_BOOT_DESCRIPTION_LENGTH);
StringBufferA[LEGACY_BM_BOOT_DESCRIPTION_LENGTH] = 0;
@@ -378,9 +378,9 @@ LegacyBmDeleteAllBootOptions (
/**
Delete all the invalid legacy boot options.
- @retval EFI_SUCCESS All invalide legacy boot options are deleted.
+ @retval EFI_SUCCESS All invalid legacy boot options are deleted.
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
- @retval EFI_NOT_FOUND Fail to retrive variable of boot order.
+ @retval EFI_NOT_FOUND Fail to retrieve variable of boot order.
**/
EFI_STATUS
LegacyBmDeleteAllInvalidBootOptions (
@@ -499,7 +499,7 @@ LegacyBmDeleteAllInvalidBootOptions (
/**
Create legacy boot option.
- @param BootOption Ponter to the boot option which will be crated.
+ @param BootOption Pointer to the boot option which will be crated.
@param BbsEntry The input bbs entry info.
@param BbsIndex The BBS index.
@@ -615,10 +615,10 @@ LegacyBmFillDevOrderBuf (
@param BbsTable The BBS table.
@param BbsCount The BBS Count.
- @retval EFI_SUCCES The buffer is created and the EFI variable named
+ @retval EFI_SUCCESS The buffer is created and the EFI variable named
VAR_LEGACY_DEV_ORDER and EfiLegacyDevOrderGuid is
set correctly.
- @retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough.
+ @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.
@retval EFI_DEVICE_ERROR Fail to add the device order into EFI variable fail
because of hardware error.
**/
@@ -742,7 +742,7 @@ LegacyBmCreateDevOrder (
@retval EFI_SUCCESS The boot devices are added successfully.
@retval EFI_NOT_FOUND The legacy boot devices are not found.
- @retval EFI_OUT_OF_RESOURCES Memmory or storage is not enough.
+ @retval EFI_OUT_OF_RESOURCES Memory or storage is not enough.
@retval EFI_DEVICE_ERROR Fail to add the legacy device boot order into EFI variable
because of hardware error.
**/
@@ -1042,7 +1042,7 @@ LegacyBmUpdateDevOrder (
@param DeviceType The device type.
@param BbsIndex The BBS index to set the highest priority. Ignore when -1.
@param LocalBbsTable The BBS table.
- @param Priority The prority table.
+ @param Priority The priority table.
@retval EFI_SUCCESS The function completes successfully.
@retval EFI_NOT_FOUND Failed to find device.
@@ -1494,7 +1494,7 @@ LegacyBmRefreshAllBootOption (
//
// Same algorithm pattern as the EfiBootManagerRefreshAllBootOption
// Firstly delete the invalid legacy boot options,
- // then enumreate and save the newly appeared legacy boot options
+ // then enumerate and save the newly appeared legacy boot options
// the last step is legacy boot option special action to refresh the LegacyDevOrder variable
//
LegacyBmDeleteAllInvalidBootOptions ();