Re: [edk2-devel] [PATCH v2 24/78] MdePkg/Library/Dxe: Fix various typos

2020-01-05 Thread Liming Gao
Reviewed-by: Liming Gao 

-Original Message-
From: Philippe Mathieu-Daude  
Sent: 2020年1月3日 17:07
To: devel@edk2.groups.io
Cc: Antoine Coeur ; Kinney, Michael D 
; Gao, Liming ; Philippe 
Mathieu-Daude 
Subject: [PATCH v2 24/78] MdePkg/Library/Dxe: Fix various typos

From: Antoine Coeur 

Fix various typos in documentation, comments and strings, and remove the 
duplicated 'the'.

Cc: Michael D Kinney 
Cc: Liming Gao 
Signed-off-by: Antoine Coeur 
Reviewed-by: Philippe Mathieu-Daude 
Reviewed-by: Michael D Kinney 
Signed-off-by: Philippe Mathieu-Daude 
---
 MdePkg/Library/DxePcdLib/DxePcdLib.inf   |  2 +-
 MdePkg/Include/Library/DxeServicesLib.h  |  2 +-
 .../DxeExtractGuidedSectionLib.c | 10 +-
 MdePkg/Library/DxeHobLib/HobLib.c|  2 +-
 MdePkg/Library/DxeIoLibCpuIo2/IoLib.c|  2 +-
 .../Library/DxeRuntimePciExpressLib/PciExpressLib.c  |  6 +++---
 MdePkg/Library/DxeServicesLib/DxeServicesLib.c   | 12 ++--
 .../DxeServicesTableLib/DxeServicesTableLib.c|  2 +-
 MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c |  2 +-
 MdePkg/Library/DxePcdLib/DxePcdLib.uni   |  2 +-
 10 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.inf 
b/MdePkg/Library/DxePcdLib/DxePcdLib.inf
index c3f67543a4b7..3d4d21b442b4 100644
--- a/MdePkg/Library/DxePcdLib/DxePcdLib.inf
+++ b/MdePkg/Library/DxePcdLib/DxePcdLib.inf
@@ -16,7 +16,7 @@
 # Note: A driver of type DXE_RUNTIME_DRIVER and DXE_SMM_DRIVER can only use 
this DxePcdLib  #  in their initialization without any issues to access Dynamic 
and DynamicEx PCD. They can't  #  access Dynamic and DynamicEx PCD in the 
implementation of runtime services and SMI handlers.
-#  Because EFI_PCD_PROTOCOL is DXE protocol that is not aviable in OS runtime 
phase.
+#  Because EFI_PCD_PROTOCOL is DXE protocol that is not available in OS 
runtime phase.
 #
 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.  # 
diff --git a/MdePkg/Include/Library/DxeServicesLib.h 
b/MdePkg/Include/Library/DxeServicesLib.h
index 838abf356fdd..689f47a54fa1 100644
--- a/MdePkg/Include/Library/DxeServicesLib.h
+++ b/MdePkg/Include/Library/DxeServicesLib.h
@@ -171,7 +171,7 @@ GetSectionFromFv (
 
 
 /**
-  Searches the FFS file the the currently executing module was loaded from and 
returns the first matching FFS section.
+  Searches the FFS file the currently executing module was loaded from and 
returns the first matching FFS section.
 
   This function searches the FFS file that the currently executing module was 
loaded from for a FFS sections of type SectionType.
   If the FFS file contains at least SectionInstance instances of the FFS 
section specified by SectionType, diff --git 
a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c 
b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
index 4dfe450be9bc..ef730ec55159 100644
--- a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
+++ b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionL
+++ ib.c
@@ -150,7 +150,7 @@ ExtractGuidedSectionGetGuidList (
   If GetInfoHandler is NULL, then ASSERT().
   If DecodeHandler is NULL, then ASSERT().
 
-  @param[in]  SectionGuidA pointer to the GUID associated with the the 
handlers
+  @param[in]  SectionGuidA pointer to the GUID associated with the handlers
  of the GUIDed section type being registered.
   @param[in]  GetInfoHandler The pointer to a function that examines a GUIDed 
section and returns the
  size of the decoded buffer and the size of an 
optional scratch buffer @@ -231,9 +231,9 @@ 
ExtractGuidedSectionRegisterHandlers (
   Examines a GUIDed section specified by InputSection.
   If GUID for InputSection does not match any of the GUIDs registered through 
ExtractGuidedSectionRegisterHandlers(),
   then RETURN_UNSUPPORTED is returned.
-  If the GUID of InputSection does match the GUID that this handler supports, 
then the the associated handler
+  If the GUID of InputSection does match the GUID that this handler 
+ supports, then the associated handler
   of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with 
ExtractGuidedSectionRegisterHandlers()
-  is used to retrieve the OututBufferSize, ScratchSize, and Attributes values. 
The return status from the handler of
+  is used to retrieve the OutputBufferSize, ScratchSize, and Attributes 
+ values. The return status from the handler of
   type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER is returned.
 
   If InputSection is NULL, then ASSERT().
@@ -311,7 +311,7 @@ ExtractGuidedSectionGetInfo (
   Decodes the GUIDed section specified by InputSection.
   If GUID for InputSection does not match any of the GUIDs registered through 
ExtractGuidedSectionRegisterHandlers(),
   then RETURN_UNSUPPORTED is returned.
-  If the GUID 

[edk2-devel] [PATCH v2 24/78] MdePkg/Library/Dxe: Fix various typos

2020-01-03 Thread Philippe Mathieu-Daudé
From: Antoine Coeur 

Fix various typos in documentation, comments and strings,
and remove the duplicated 'the'.

Cc: Michael D Kinney 
Cc: Liming Gao 
Signed-off-by: Antoine Coeur 
Reviewed-by: Philippe Mathieu-Daude 
Reviewed-by: Michael D Kinney 
Signed-off-by: Philippe Mathieu-Daude 
---
 MdePkg/Library/DxePcdLib/DxePcdLib.inf   |  2 +-
 MdePkg/Include/Library/DxeServicesLib.h  |  2 +-
 .../DxeExtractGuidedSectionLib.c | 10 +-
 MdePkg/Library/DxeHobLib/HobLib.c|  2 +-
 MdePkg/Library/DxeIoLibCpuIo2/IoLib.c|  2 +-
 .../Library/DxeRuntimePciExpressLib/PciExpressLib.c  |  6 +++---
 MdePkg/Library/DxeServicesLib/DxeServicesLib.c   | 12 ++--
 .../DxeServicesTableLib/DxeServicesTableLib.c|  2 +-
 MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c |  2 +-
 MdePkg/Library/DxePcdLib/DxePcdLib.uni   |  2 +-
 10 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.inf 
b/MdePkg/Library/DxePcdLib/DxePcdLib.inf
index c3f67543a4b7..3d4d21b442b4 100644
--- a/MdePkg/Library/DxePcdLib/DxePcdLib.inf
+++ b/MdePkg/Library/DxePcdLib/DxePcdLib.inf
@@ -16,7 +16,7 @@
 # Note: A driver of type DXE_RUNTIME_DRIVER and DXE_SMM_DRIVER can only use 
this DxePcdLib
 #  in their initialization without any issues to access Dynamic and DynamicEx 
PCD. They can't
 #  access Dynamic and DynamicEx PCD in the implementation of runtime services 
and SMI handlers.
-#  Because EFI_PCD_PROTOCOL is DXE protocol that is not aviable in OS runtime 
phase.
+#  Because EFI_PCD_PROTOCOL is DXE protocol that is not available in OS 
runtime phase.
 #
 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
 #
diff --git a/MdePkg/Include/Library/DxeServicesLib.h 
b/MdePkg/Include/Library/DxeServicesLib.h
index 838abf356fdd..689f47a54fa1 100644
--- a/MdePkg/Include/Library/DxeServicesLib.h
+++ b/MdePkg/Include/Library/DxeServicesLib.h
@@ -171,7 +171,7 @@ GetSectionFromFv (
 
 
 /**
-  Searches the FFS file the the currently executing module was loaded from and 
returns the first matching FFS section.
+  Searches the FFS file the currently executing module was loaded from and 
returns the first matching FFS section.
 
   This function searches the FFS file that the currently executing module was 
loaded from for a FFS sections of type SectionType.
   If the FFS file contains at least SectionInstance instances of the FFS 
section specified by SectionType,
diff --git 
a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c 
b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
index 4dfe450be9bc..ef730ec55159 100644
--- a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
+++ b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c
@@ -150,7 +150,7 @@ ExtractGuidedSectionGetGuidList (
   If GetInfoHandler is NULL, then ASSERT().
   If DecodeHandler is NULL, then ASSERT().
 
-  @param[in]  SectionGuidA pointer to the GUID associated with the the 
handlers
+  @param[in]  SectionGuidA pointer to the GUID associated with the handlers
  of the GUIDed section type being registered.
   @param[in]  GetInfoHandler The pointer to a function that examines a GUIDed 
section and returns the
  size of the decoded buffer and the size of an 
optional scratch buffer
@@ -231,9 +231,9 @@ ExtractGuidedSectionRegisterHandlers (
   Examines a GUIDed section specified by InputSection.
   If GUID for InputSection does not match any of the GUIDs registered through 
ExtractGuidedSectionRegisterHandlers(),
   then RETURN_UNSUPPORTED is returned.
-  If the GUID of InputSection does match the GUID that this handler supports, 
then the the associated handler
+  If the GUID of InputSection does match the GUID that this handler supports, 
then the associated handler
   of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER that was registered with 
ExtractGuidedSectionRegisterHandlers()
-  is used to retrieve the OututBufferSize, ScratchSize, and Attributes values. 
The return status from the handler of
+  is used to retrieve the OutputBufferSize, ScratchSize, and Attributes 
values. The return status from the handler of
   type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER is returned.
 
   If InputSection is NULL, then ASSERT().
@@ -311,7 +311,7 @@ ExtractGuidedSectionGetInfo (
   Decodes the GUIDed section specified by InputSection.
   If GUID for InputSection does not match any of the GUIDs registered through 
ExtractGuidedSectionRegisterHandlers(),
   then RETURN_UNSUPPORTED is returned.
-  If the GUID of InputSection does match the GUID that this handler supports, 
then the the associated handler
+  If the GUID of InputSection does match the GUID that this handler supports, 
then the associated handler
   of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER that was registered with