From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.120]) by mx.groups.io with SMTP id smtpd.web12.8414.1575389871093856692 for ; Tue, 03 Dec 2019 08:17:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dv1BHxZn; spf=pass (domain: redhat.com, ip: 207.211.31.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575389870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XXKmislO7OCLCngfjEQS7Pie4GU7voSfDuZdvLqHo0w=; b=Dv1BHxZnBBL4iolkbc9JoTZP01dh8DyrAeQ9rKdei/6Rpv9LWCLsvmS9P6Zr1zMSUNeBWC 2l2xUcT7iykUA7Ozg9bc0X6pjzYyE8wyj7JcQ2hvoFHUyGvjXV4k6v0BUsG6T/46xtM/PF +nRSwym721apJNfaZK2m9UicNWFlv9k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-95-br00GFajM-2x_O4Lg5IAQg-1; Tue, 03 Dec 2019 11:17:48 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7BC8F107ACE3; Tue, 3 Dec 2019 16:17:47 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 031B960C63; Tue, 3 Dec 2019 16:17:44 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Michael D Kinney , Liming Gao , Philippe Mathieu-Daude Subject: [PATCH 26/79] MdePkg/Library/Dxe: Fix various typos Date: Tue, 3 Dec 2019 17:15:09 +0100 Message-Id: <20191203161602.15969-27-philmd@redhat.com> In-Reply-To: <20191203161602.15969-1-philmd@redhat.com> References: <20191203161602.15969-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: br00GFajM-2x_O4Lg5IAQg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in documentation, comments and strings, and remove the duplicated 'the'. Cc: Michael D Kinney Cc: Liming Gao Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude --- MdePkg/Library/DxePcdLib/DxePcdLib.inf | = 2 +- MdePkg/Include/Library/DxeServicesLib.h | = 2 +- MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.c | 1= 0 +++++----- MdePkg/Library/DxeHobLib/HobLib.c | = 2 +- MdePkg/Library/DxeIoLibCpuIo2/IoLib.c | = 2 +- MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c | = 6 +++--- MdePkg/Library/DxeServicesLib/DxeServicesLib.c | 1= 2 ++++++------ MdePkg/Library/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/DxePcd= Lib/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 us= e this DxePcdLib # in their initialization without any issues to access Dynamic and Dynami= cEx PCD. They can't # access Dynamic and DynamicEx PCD in the implementation of runtime servi= ces and SMI handlers. -# Because EFI_PCD_PROTOCOL is DXE protocol that is not aviable in OS runt= ime phase. +# Because EFI_PCD_PROTOCOL is DXE protocol that is not available in OS ru= ntime phase. # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# diff --git a/MdePkg/Include/Library/DxeServicesLib.h b/MdePkg/Include/Libra= ry/DxeServicesLib.h index 838abf356fdd..689f47a54fa1 100644 --- a/MdePkg/Include/Library/DxeServicesLib.h +++ b/MdePkg/Include/Library/DxeServicesLib.h @@ -171,7 +171,7 @@ GetSectionFromFv ( =20 =20 /** - 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. =20 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 s= ection specified by SectionType, diff --git a/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSect= ionLib.c b/MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectio= nLib.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(). =20 - @param[in] SectionGuid A pointer to the GUID associated with the the= handlers + @param[in] SectionGuid A pointer to the GUID associated with the han= dlers of the GUIDed section type being registered. @param[in] GetInfoHandler The pointer to a function that examines a GUI= Ded 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 thro= ugh ExtractGuidedSectionRegisterHandlers(), then RETURN_UNSUPPORTED is returned. - If the GUID of InputSection does match the GUID that this handler suppor= ts, then the the associated handler + If the GUID of InputSection does match the GUID that this handler suppor= ts, 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 val= ues. The return status from the handler of + is used to retrieve the OutputBufferSize, ScratchSize, and Attributes va= lues. The return status from the handler of type EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER is returned. =20 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 thro= ugh ExtractGuidedSectionRegisterHandlers(), then RETURN_UNSUPPORTED is returned. - If the GUID of InputSection does match the GUID that this handler suppor= ts, then the the associated handler + If the GUID of InputSection does match the GUID that this handler suppor= ts, then the associated handler of type EXTRACT_GUIDED_SECTION_DECODE_HANDLER that was registered with E= xtractGuidedSectionRegisterHandlers() is used to decode InputSection into the buffer specified by OutputBuffer= and the authentication status of this decode operation is returned in AuthenticationStatus. If the decoded bu= ffer is identical to the data in InputSection, @@ -397,7 +397,7 @@ ExtractGuidedSectionDecode ( =20 If SectionGuid is NULL, then ASSERT(). =20 - @param[in] SectionGuid A pointer to the GUID associated with the han= dlersof the GUIDed + @param[in] SectionGuid A pointer to the GUID associated with the han= dlers of the GUIDed section type being retrieved. @param[out] GetInfoHandler Pointer to a function that examines a GUIDed = section and returns the size of the decoded buffer and the size o= f an optional scratch diff --git a/MdePkg/Library/DxeHobLib/HobLib.c b/MdePkg/Library/DxeHobLib/H= obLib.c index bf2470f6e278..ffac638d1806 100644 --- a/MdePkg/Library/DxeHobLib/HobLib.c +++ b/MdePkg/Library/DxeHobLib/HobLib.c @@ -1,5 +1,5 @@ /** @file - HOB Library implemenation for Dxe Phase. + HOB Library implementation for Dxe Phase. =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent diff --git a/MdePkg/Library/DxeIoLibCpuIo2/IoLib.c b/MdePkg/Library/DxeIoLi= bCpuIo2/IoLib.c index b37e7a299e8a..21f88d98527c 100644 --- a/MdePkg/Library/DxeIoLibCpuIo2/IoLib.c +++ b/MdePkg/Library/DxeIoLibCpuIo2/IoLib.c @@ -11,7 +11,7 @@ #include "DxeCpuIo2LibInternal.h" =20 // -// Globle varible to cache pointer to CpuIo2 protocol. +// Global variable to cache pointer to CpuIo2 protocol. // EFI_CPU_IO2_PROTOCOL *mCpuIo =3D NULL; =20 diff --git a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c b/MdePk= g/Library/DxeRuntimePciExpressLib/PciExpressLib.c index 6e784763be73..b456b676bddc 100644 --- a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c +++ b/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c @@ -299,7 +299,7 @@ PciExpressRegisterForRuntimeAccess ( Address =3D GetPciExpressAddress (Address & 0x0ffff000); =20 // - // See if Address has already been registerd for runtime access + // See if Address has already been registered for runtime access // for (Index =3D 0; Index < mDxeRuntimePciExpressLibNumberOfRuntimeRanges;= Index++) { if (mDxeRuntimePciExpressLibRegistrationTable[Index].PhysicalAddress = =3D=3D Address) { @@ -1457,7 +1457,7 @@ PciExpressBitFieldAndThenOr32 ( Size into the buffer specified by Buffer. This function only allows the = PCI configuration registers from a single PCI function to be read. Size is returned. When possible 32-bit PCI configuration read cycles are used to= read - from StartAdress to StartAddress + Size. Due to alignment restrictions, = 8-bit + from StartAddress to StartAddress + Size. Due to alignment restrictions,= 8-bit and 16-bit PCI configuration read cycles may be used at the beginning an= d the end of the range. =20 @@ -1560,7 +1560,7 @@ PciExpressReadBuffer ( Size from the buffer specified by Buffer. This function only allows the = PCI configuration registers from a single PCI function to be written. Size i= s returned. When possible 32-bit PCI configuration write cycles are used t= o - write from StartAdress to StartAddress + Size. Due to alignment restrict= ions, + write from StartAddress to StartAddress + Size. Due to alignment restric= tions, 8-bit and 16-bit PCI configuration write cycles may be used at the begin= ning and the end of the range. =20 diff --git a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c b/MdePkg/Librar= y/DxeServicesLib/DxeServicesLib.c index 0735b2f80400..3e3bbf605533 100644 --- a/MdePkg/Library/DxeServicesLib/DxeServicesLib.c +++ b/MdePkg/Library/DxeServicesLib/DxeServicesLib.c @@ -25,7 +25,7 @@ /** Identify the device handle from which the Image is loaded from. As this = device handle is passed to GetSectionFromFv as the identifier for a Firmware Volume, an EFI_FIRMWAR= E_VOLUME2_PROTOCOL - protocol instance should be located succesfully by calling gBS->HandlePr= otocol (). + protocol instance should be located successfully by calling gBS->HandleP= rotocol (). =20 This function locates the EFI_LOADED_IMAGE_PROTOCOL instance installed on ImageHandle. It then returns EFI_LOADED_IMAGE_PROTOCOL.DeviceHandle. @@ -71,7 +71,7 @@ InternalImageHandleToFvHandle ( Section type and instance number from the specified Firmware Volume. =20 This functions first locate the EFI_FIRMWARE_VOLUME2_PROTOCOL protocol i= nstance on FvHandle in order to - carry out the Firmware Volume read operation. The function then reads th= e Firmware Section found sepcifed + carry out the Firmware Volume read operation. The function then reads th= e Firmware Section found specified by NameGuid, SectionType and SectionInstance. =20 The details of this search order is defined in description of EFI_FIRMWA= RE_VOLUME2_PROTOCOL.ReadSection () @@ -94,7 +94,7 @@ InternalImageHandleToFvHandle ( @param SectionType The Firmware Section type. @param SectionInstance The instance number of Firmware Section = to read from starting from 0. - @param Buffer On output, Buffer contains the the data = read + @param Buffer On output, Buffer contains the data read from the section in the Firmware File fo= und. @param Size On output, the size of Buffer. =20 @@ -517,7 +517,7 @@ GetSectionFromFv ( =20 =20 /** - 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. =20 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 s= ection specified by SectionType, @@ -597,7 +597,7 @@ GetSectionFromFfs ( selection. If FALSE, then FilePath= must match an exact file to be loaded. @param[in] FilePath The pointer to the device path of = the file - that is absracted to the file buff= er. + that is abstracted to the file buf= fer. @param[out] FileSize The pointer to the size of the abs= tracted file buffer. @param[out] AuthenticationStatus Pointer to the authentication stat= us. @@ -745,7 +745,7 @@ GetFileBufferByFilePath ( } // // Parse each MEDIA_FILEPATH_DP node. There may be more than one, = since the - // directory information and filename can be seperate. The goal is= to inch + // directory information and filename can be separate. The goal is= to inch // our way down each device path node and close the previous node // DevicePathNode =3D TempDevicePathNode; diff --git a/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.c b/Mde= Pkg/Library/DxeServicesTableLib/DxeServicesTableLib.c index 6783e4d75489..9acb1b79b391 100644 --- a/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.c +++ b/MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.c @@ -9,7 +9,7 @@ Please attention this library instance can not be used util EFI_SYSTEM_T= ABLE was initialized. =20 - This library contains contruct function to retrieve EFI_DXE_SERIVCE, thi= s construct + This library contains construct function to retrieve EFI_DXE_SERVICE, th= is construct function will be invoked in DXE driver's autogen file. =20 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
diff --git a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c b/MdePkg/Library/DxeS= mbusLib/DxeSmbusLib.c index f6e3d4508f47..d9cca7eb5fa8 100644 --- a/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c +++ b/MdePkg/Library/DxeSmbusLib/DxeSmbusLib.c @@ -12,7 +12,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =20 =20 // -// Globle varible to cache pointer to Smbus protocol. +// Global variable to cache pointer to Smbus protocol. // EFI_SMBUS_HC_PROTOCOL *mSmbus =3D NULL; =20 diff --git a/MdePkg/Library/DxePcdLib/DxePcdLib.uni b/MdePkg/Library/DxePcd= Lib/DxePcdLib.uni index 889f427e5ffd..c48aea35db95 100644 --- a/MdePkg/Library/DxePcdLib/DxePcdLib.uni +++ b/MdePkg/Library/DxePcdLib/DxePcdLib.uni @@ -22,5 +22,5 @@ =20 #string STR_MODULE_ABSTRACT #language en-US "PCD Library using= PCD Protocol" =20 -#string STR_MODULE_DESCRIPTION #language en-US "There are two PCD= protocols: 1) PCD_PROTOCOL It is an EDKII implementation that supporst Dyn= amic/DynamicEx PCDs. 2) EFI_PCD_PROTOCOL It is defined by PI Specification = 1.2, Vol 3, which only support dynamicEx type PCD. For dynamicEx type PCDs= , it is compatible between PCD_PROTOCOL and EFI_PCD_PROTOCOL. This library= instance uses the PCD_PROTOCOL to handle dynamic PCD requests and uses EFI= _PCD_PROTOCOL to handle DynamicEx type PCDs." +#string STR_MODULE_DESCRIPTION #language en-US "There are two PCD= protocols: 1) PCD_PROTOCOL It is an EDKII implementation that supports Dyn= amic/DynamicEx PCDs. 2) EFI_PCD_PROTOCOL It is defined by PI Specification = 1.2, Vol 3, which only support dynamicEx type PCD. For dynamicEx type PCDs= , it is compatible between PCD_PROTOCOL and EFI_PCD_PROTOCOL. This library= instance uses the PCD_PROTOCOL to handle dynamic PCD requests and uses EFI= _PCD_PROTOCOL to handle DynamicEx type PCDs." =20 --=20 2.21.0