]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SignedCapsulePkg/Universal: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:08:23 +0000 (02:08 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in documentation, comments and debug strings.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-71-philmd@redhat.com>

SignedCapsulePkg/Universal/RecoveryModuleLoadPei/ParseConfigProfile.c
SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.c
SignedCapsulePkg/Universal/SystemFirmwareUpdate/ParseConfigProfile.c
SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c
SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareDxe.h
SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareReportDxe.c
SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.c

index ee9787a2bf53e5bb6e707268673f251980162bc3..5cd690ddeb76d3f5b74a61d0c9d05717ce151523 100644 (file)
@@ -103,7 +103,7 @@ ParseRecoveryDataFile (
     //\r
 \r
     //\r
-    // FileBuid\r
+    // FileGuid\r
     //\r
     Status = GetGuidFromDataFile(\r
                Context,\r
index eda3cc542068caad2c25f10af32bac301d5c15bd..53b821c2bb26bf400823c37f5abe8bb872a46669 100644 (file)
@@ -20,7 +20,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #include <Uefi.h>\r
 #include <PiPei.h>\r
 //\r
-// The protocols, PPI and GUID defintions for this module\r
+// The protocols, PPI and GUID definitions for this module\r
 //\r
 #include <Ppi/MasterBootMode.h>\r
 #include <Ppi/BootInRecoveryMode.h>\r
@@ -144,7 +144,7 @@ IsFmpCapsuleGuid (
 }\r
 \r
 /**\r
-  This function assumes the input Capusule image already passes basic check in\r
+  This function assumes the input Capsule image already passes basic check in\r
   ValidateFmpCapsule().\r
 \r
   Criteria of system FMP capsule is:\r
@@ -235,7 +235,7 @@ IsValidCapsuleHeader (
   @param[out]  IsSystemFmp          If it is a system FMP.\r
   @param[out]  EmbeddedDriverCount  The EmbeddedDriverCount in the FMP capsule.\r
 \r
-  @retval EFI_SUCESS             Input capsule is a correct FMP capsule.\r
+  @retval EFI_SUCCESS            Input capsule is a correct FMP capsule.\r
   @retval EFI_INVALID_PARAMETER  Input capsule is not a correct FMP capsule.\r
 **/\r
 EFI_STATUS\r
@@ -398,7 +398,7 @@ InitializeRecoveryModule (
   @param[in]  FvImage         Points to the DXE FV image.\r
   @param[in]  FvImageSize     The length of the DXE FV image in bytes.\r
 \r
-  @retval EFI_SUCESS            Create hob and install FvInfo PPI successfully.\r
+  @retval EFI_SUCCESS           Create hob and install FvInfo PPI successfully.\r
   @retval EFI_VOLUME_CORRUPTED  The input data is not an FV.\r
   @retval EFI_OUT_OF_RESOURCES  No enough resource to process the input data.\r
 **/\r
@@ -479,7 +479,7 @@ CreateHobForRecoveryCapsule (
   @param[in]  ConfigImage             Points to the config file image.\r
   @param[in]  ConfigImageSize         The length of the config file image in bytes.\r
 \r
-  @retval EFI_SUCESS             Process Recovery Image successfully.\r
+  @retval EFI_SUCCESS            Process Recovery Image successfully.\r
 **/\r
 EFI_STATUS\r
 RecoverImage (\r
@@ -554,7 +554,7 @@ RecoverImage (
   @param[in]  Image         Points to the recovery image.\r
   @param[in]  Length        The length of the recovery image in bytes.\r
 \r
-  @retval EFI_SUCESS             Process Recovery Image successfully.\r
+  @retval EFI_SUCCESS            Process Recovery Image successfully.\r
   @retval EFI_SECURITY_VIOLATION Recovery image is not processed due to security violation.\r
 **/\r
 EFI_STATUS\r
@@ -607,7 +607,7 @@ ProcessRecoveryImage (
   @param[in]  CapsuleHeader         Points to a capsule header.\r
   @param[in]  IsSystemFmp           If this capsule is a system FMP capsule.\r
 \r
-  @retval EFI_SUCESS            Process Capsule Image successfully.\r
+  @retval EFI_SUCCESS           Process Capsule Image successfully.\r
   @retval EFI_UNSUPPORTED       Capsule image is not supported by the firmware.\r
   @retval EFI_VOLUME_CORRUPTED  FV volume in the capsule is corrupted.\r
   @retval EFI_OUT_OF_RESOURCES  Not enough memory.\r
index 7d414b07fbc4eb8635aff49828db96a59da55e6e..878c6680a33864f65b7ea36492c8c9243397ab90 100644 (file)
@@ -153,7 +153,7 @@ ParseUpdateDataFile (
     (*UpdateArray)[Index].BaseAddress = (EFI_PHYSICAL_ADDRESS) Num64;\r
 \r
     //\r
-    // FileBuid\r
+    // FileGuid\r
     //\r
     Status = GetGuidFromDataFile(\r
                Context,\r
index d377a8d056655a22874e65a2a2c144073ced1ede..1b6d7e78eaa186bf7e5b2d1207655c96873e9f1b 100644 (file)
@@ -331,8 +331,8 @@ InitializePrivateData (
                      &VarSize,\r
                      &SystemFmpPrivate->LastAttempt\r
                      );\r
-  DEBUG((DEBUG_INFO, "GetLastAttemp - %r\n", VarStatus));\r
-  DEBUG((DEBUG_INFO, "GetLastAttemp Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
+  DEBUG((DEBUG_INFO, "GetLastAttempt - %r\n", VarStatus));\r
+  DEBUG((DEBUG_INFO, "GetLastAttempt Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
 \r
   return EFI_SUCCESS;\r
 }\r
index f7166e337ad76d97708496c2720ac1fe62851663..d3cc89e5f10689f2fa930512cd4bb1594e968fc1 100644 (file)
@@ -113,7 +113,7 @@ typedef struct {
 \r
 #define  ABORT_REASON_MAX_SIZE              0x40  // UnicodeStringSize including final L'\0'\r
 \r
-#define  CAPSULE_IMAGE_ADDITIONAL_MAX_SIZE  (0x20020 + 0xA0000) // Addtional size for Capsule Header, FV block alignment + DispatchImage.\r
+#define  CAPSULE_IMAGE_ADDITIONAL_MAX_SIZE  (0x20020 + 0xA0000) // Additional size for Capsule Header, FV block alignment + DispatchImage.\r
 \r
 typedef struct {\r
   UINT8       ImageIndex;\r
index ffd9d1f25bfb99e4f3b233726941eb6ad3b789e0..ebd1d0d53db8e41c57a8baab8bb758a5b27bb652 100644 (file)
@@ -30,7 +30,7 @@ SYSTEM_FMP_PRIVATE_DATA *mSystemFmpPrivate = NULL;
   @param[out] LastAttemptVersion The last attempt version, which will be recorded in ESRT and FMP EFI_FIRMWARE_IMAGE_DESCRIPTOR.\r
   @param[out] LastAttemptStatus  The last attempt status, which will be recorded in ESRT and FMP EFI_FIRMWARE_IMAGE_DESCRIPTOR.\r
 \r
-  @retval EFI_SUCESS            Process Capsule Image successfully.\r
+  @retval EFI_SUCCESS           Process Capsule Image successfully.\r
   @retval EFI_UNSUPPORTED       Capsule image is not supported by the firmware.\r
   @retval EFI_VOLUME_CORRUPTED  FV volume in the capsule is corrupted.\r
   @retval EFI_OUT_OF_RESOURCES  Not enough memory.\r
@@ -174,7 +174,7 @@ FmpSetImage (
   // Process FV\r
   //\r
   Status = DispatchSystemFmpImages((VOID *)Image, ImageSize, &SystemFmpPrivate->LastAttempt.LastAttemptVersion, &SystemFmpPrivate->LastAttempt.LastAttemptStatus);\r
-  DEBUG((DEBUG_INFO, "(Agent)SetImage - LastAttemp Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
+  DEBUG((DEBUG_INFO, "(Agent)SetImage - LastAttempt Version - 0x%x, State - 0x%x\n", SystemFmpPrivate->LastAttempt.LastAttemptVersion, SystemFmpPrivate->LastAttempt.LastAttemptStatus));\r
   if (EFI_ERROR(Status)) {\r
     VarStatus = gRT->SetVariable(\r
                        SYSTEM_FMP_LAST_ATTEMPT_VARIABLE_NAME,\r
@@ -183,7 +183,7 @@ FmpSetImage (
                        sizeof(SystemFmpPrivate->LastAttempt),\r
                        &SystemFmpPrivate->LastAttempt\r
                        );\r
-    DEBUG((DEBUG_INFO, "(Agent)SetLastAttemp - %r\n", VarStatus));\r
+    DEBUG((DEBUG_INFO, "(Agent)SetLastAttempt - %r\n", VarStatus));\r
     return Status;\r
   }\r
 \r
@@ -211,7 +211,7 @@ FmpSetImage (
                          sizeof(SystemFmpPrivate->LastAttempt),\r
                          &SystemFmpPrivate->LastAttempt\r
                          );\r
-      DEBUG((DEBUG_INFO, "(Agent)SetLastAttemp - %r\n", VarStatus));\r
+      DEBUG((DEBUG_INFO, "(Agent)SetLastAttempt - %r\n", VarStatus));\r
       return Status;\r
     }\r
   }\r
index c302f750e2fd881b85c1a9e74235280ed92673b5..bdb70bdb32cc1ec8df0984a497ad325ad50fe0f1 100644 (file)
@@ -493,7 +493,7 @@ FmpSetImage (
   // the current variable driver may not manage the new NVRAM region.\r
   //\r
   if (mNvRamUpdated) {\r
-    DEBUG ((DEBUG_INFO, "NvRamUpdated, Update Variable Serivces\n"));\r
+    DEBUG ((DEBUG_INFO, "NvRamUpdated, Update Variable Services\n"));\r
     gRT->GetVariable         = GetVariableHook;\r
     gRT->GetNextVariableName = GetNextVariableNameHook;\r
     gRT->SetVariable         = SetVariableHook;\r
@@ -514,7 +514,7 @@ FmpSetImage (
                      sizeof(SystemFmpPrivate->LastAttempt),\r
                      &SystemFmpPrivate->LastAttempt\r
                      );\r
-  DEBUG((DEBUG_INFO, "SetLastAttemp - %r\n", VarStatus));\r
+  DEBUG((DEBUG_INFO, "SetLastAttempt - %r\n", VarStatus));\r
 \r
   return Status;\r
 }\r