[edk2-devel] [PATCH v2 4/7] EmulatorPkg: Fix various typos

Cœur coeur at gmx.fr
Tue Jul 2 16:42:30 UTC 2019


Fix various typos in EmulatorPkg.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Coeur <coeur at gmx.fr>
---
EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c                 | 2 +-
.../DxeEmuPeCoffExtraActionLib.c                          | 2 +-
.../DxeEmuPeCoffExtraActionLib.inf                        | 2 +-
.../Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c     | 8 ++++----
.../DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c | 2 +-
.../GuardUefiMemoryAllocationLib/MemoryAllocationLib.c    | 6 +++---
.../PeiEmuPeCoffExtraActionLib.c                          | 2 +-
.../PeiEmuPeCoffExtraActionLib.inf                        | 2 +-
.../PeiEmuPeCoffGetEntryPointLib.c                        | 4 ++--
.../Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c     | 2 +-
.../PeiServicesTablePointerLib/PeiServicesTablePointer.c  | 4 ++--
.../PeiServicesTablePointer.c                             | 4 ++--
.../PeiServicesTablePointerLibMagicPage.inf               | 2 +-
EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf       | 2 +-
EmulatorPkg/Library/SmbiosLib/SmbiosLib.c                 | 8 ++++----
15 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c b/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
index 3247114d09..6e718109e9 100644
--- a/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
+++ b/EmulatorPkg/Library/DxeEmuLib/DxeEmuLib.c
@@ -45,7 +45,7 @@ DxeEmuLibConstructor (

/**
-  Serach the EMU IO Thunk database for a matching EMU IO Thunk
+  Search the EMU IO Thunk database for a matching EMU IO Thunk
Protocol instance.

@param  Protocol   Protocol to search for.
diff --git a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
index 44a42a3784..1ab24aa7c0 100644
--- a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
+++ b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.c
@@ -1,6 +1,6 @@
/** @file
Provides services to perform additional actions to relocate and unload
-  PE/Coff image for Emu environment specific purpose such as souce level debug.
+  PE/Coff image for Emu environment specific purpose such as source level debug.
This version only works for DXE phase

Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
index fdc890a000..180f153e9b 100644
--- a/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
+++ b/EmulatorPkg/Library/DxeEmuPeCoffExtraActionLib/DxeEmuPeCoffExtraActionLib.inf
@@ -1,5 +1,5 @@
## @file
-# PeCoff extra action libary for DXE phase that run Emu emulator.
+# PeCoff extra action library for DXE phase that run Emu emulator.
#
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2011, Apple Inc. All rights reserved.
diff --git a/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c b/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
index 1f9ab86377..e1a8be5a14 100644
--- a/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
+++ b/EmulatorPkg/Library/DxeEmuSerialPortLib/DxeEmuSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out.
+  All read functions are stubbed out.

Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>
@@ -153,13 +153,13 @@ SerialPortGetControl (
}

/**
-  Sets the baud rate, receive FIFO depth, transmit/receice time out, parity,
+  Sets the baud rate, receive FIFO depth, transmit/receive time out, parity,
data bits, and stop bits on a serial device.

@param BaudRate           The requested baud rate. A BaudRate value of 0 will use the
device's default interface speed.
On output, the value actually set.
-  @param ReveiveFifoDepth   The requested depth of the FIFO on the receive side of the
+  @param ReceiveFifoDepth   The requested depth of the FIFO on the receive side of the
serial interface. A ReceiveFifoDepth value of 0 will use
the device's default FIFO depth.
On output, the value actually set.
@@ -172,7 +172,7 @@ SerialPortGetControl (
DefaultParity will use the device's default parity value.
On output, the value actually set.
@param DataBits           The number of data bits to use on the serial device. A DataBits
-                            vaule of 0 will use the device's default data bit setting.
+                            value of 0 will use the device's default data bit setting.
On output, the value actually set.
@param StopBits           The number of stop bits to use on this serial device. A StopBits
value of DefaultStopBits will use the device's default number of
diff --git a/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c b/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
index 0eefec0404..17cada3638 100644
--- a/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
+++ b/EmulatorPkg/Library/DxeEmuStdErrSerialPortLib/DxeEmuStdErrSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out.
+  All read functions are stubbed out.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011, Apple Inc. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c b/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
index cd7336a017..326d472bcc 100644
--- a/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
+++ b/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/MemoryAllocationLib.c
@@ -149,7 +149,7 @@ FreePages (
ASSERT (Pages != 0);
if (!gEmuThunk->Free (Buffer)) {
// The Free thunk will not free memory allocated in emulated EFI memory.
-    // The assmuption is this was allocated directly by EFI. We need this as some
+    // The assumption is this was allocated directly by EFI. We need this as some
// times protocols or EFI BootServices can return dynamically allocated buffers.
Status = gBS->FreePages ((EFI_PHYSICAL_ADDRESS) (UINTN) Buffer, Pages);
ASSERT_EFI_ERROR (Status);
@@ -197,7 +197,7 @@ InternalAllocateAlignedPages (
}
if (Alignment > EFI_PAGE_SIZE) {
//
-    // Caculate the total number of pages since alignment is larger than page size.
+    // Calculate the total number of pages since alignment is larger than page size.
//
AlignmentMask  = Alignment - 1;
RealPages      = Pages + EFI_SIZE_TO_PAGES (Alignment);
@@ -804,7 +804,7 @@ FreePool (

if (!gEmuThunk->Free (Buffer)) {
// The Free thunk will not free memory allocated in emulated EFI memory.
-    // The assmuption is this was allocated directly by EFI. We need this as some
+    // The assumption is this was allocated directly by EFI. We need this as some
// times protocols or EFI BootServices can return dynamically allocated buffers.
Status = gBS->FreePool (Buffer);
ASSERT_EFI_ERROR (Status);
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
index 55be3efbdb..578de7ee46 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
+++ b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.c
@@ -1,6 +1,6 @@
/** @file
Provides services to perform additional actions to relocate and unload
-  PE/Coff image for Emu environment specific purpose such as souce level debug.
+  PE/Coff image for Emu environment specific purpose such as source level debug.
This version only works for PEI phase

Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
index 86ca85b437..1cc70e961c 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
+++ b/EmulatorPkg/Library/PeiEmuPeCoffExtraActionLib/PeiEmuPeCoffExtraActionLib.inf
@@ -1,5 +1,5 @@
## @file
-# PeCoff extra action libary for Pei phase that run Emu emulator.
+# PeCoff extra action library for Pei phase that run Emu emulator.
#
# Lib to provide memory journal status code reporting Routines
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
index fd756b5594..27e13e2fee 100644
--- a/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
+++ b/EmulatorPkg/Library/PeiEmuPeCoffGetEntryPointLib/PeiEmuPeCoffGetEntryPointLib.c
@@ -70,7 +70,7 @@ PeCoffLoaderGetEntryPoint (

@param  Pe32Data   Pointer to a PE/COFF header

-  @return            Machine type or zero if not a valid iamge
+  @return            Machine type or zero if not a valid image

**/
UINT16
@@ -186,7 +186,7 @@ PeCoffLoaderGetPdbPointer (
break;
default:
//
-      // For unknow Machine field, use Magic in optional Header
+      // For unknown Machine field, use Magic in optional Header
//
Magic = Hdr.Pe32->OptionalHeader.Magic;
}
diff --git a/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c b/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
index cf727a638c..a290970416 100644
--- a/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
+++ b/EmulatorPkg/Library/PeiEmuSerialPortLib/PeiEmuSerialPortLib.c
@@ -1,6 +1,6 @@
/** @file
Serial Port Lib that thunks back to Emulator services to write to StdErr.
-  All read functions are stubed out. There is no constructor so this lib can
+  All read functions are stubbed out. There is no constructor so this lib can
be linked with PEI Core.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c b/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
index d9d37bf8af..bd49f87fdd 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointer.c
@@ -5,7 +5,7 @@
executed in memory.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.
+  Portions copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -101,7 +101,7 @@ EFI_PEI_NOTIFY_DESCRIPTOR mNotifyOnThunkList = {

/**
Constructor register notification on when PPI updates. If PPI is
-  alreay installed registering the notify will cause the handle to
+  already installed registering the notify will cause the handle to
run.

@param  FileHandle   The handle of FFS header the loaded driver.
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
index 9d6e1dfd8a..d7d8440337 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointer.c
@@ -3,10 +3,10 @@

Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.
This emulates a platform SRAM. The PI mechaism does not work in the emulator due to
-  lack of privledge.
+  lack of privilege.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-  Portiions copyrigth (c) 2011, Apple Inc. All rights reserved.
+  Portions copyright (c) 2011, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
diff --git a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
index 96f642784f..bf39b3fd9c 100644
--- a/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
+++ b/EmulatorPkg/Library/PeiServicesTablePointerLibMagicPage/PeiServicesTablePointerLibMagicPage.inf
@@ -3,7 +3,7 @@
#
#  Store PEI Services Table pointer via gEmulatorPkgTokenSpaceGuid.PcdPeiServicesTablePage.
#  This emulates a platform SRAM. The PI mechaism does not work in the emulator due to
-#  lack of privledge.
+#  lack of privilege.
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# Portions copyright (c) 2011, Apple Inc. All rights reserved.
diff --git a/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf b/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
index 934dc0ccf9..c42a15c6ec 100644
--- a/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
+++ b/EmulatorPkg/Library/PlatformBmLib/PlatformBmLib.inf
@@ -1,5 +1,5 @@
## @file
-# Platfrom Boot Manager library
+# Platform Boot Manager library
#
# Do platform action customized by IBV/OEM.
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
diff --git a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
index 331122e200..59b6383892 100644
--- a/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
+++ b/EmulatorPkg/Library/SmbiosLib/SmbiosLib.c
@@ -4,7 +4,7 @@

Copyright (c) 2012, Apple Inc. All rights reserved.
-Portitions Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+Portions Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/
@@ -237,7 +237,7 @@ SmbiosLibUpdateUnicodeString (
Allow caller to read a specific SMBIOS string

@param[in]    Header          SMBIOS record that contains the string.
-  @param[in[    StringNumber    Instance of SMBIOS string 1 - N.
+  @param[in]    StringNumber    Instance of SMBIOS string 1 - N.

@retval NULL                  Instance of Type SMBIOS string was not found.
@retval Other                 Pointer to matching SMBIOS string.
@@ -268,10 +268,10 @@ SmbiosLibReadString (

/**
-  Allow the caller to discover a specific SMBIOS entry, and patch it if necissary.
+  Allow the caller to discover a specific SMBIOS entry, and patch it if necessary.

@param[in]    Type            Type of the next SMBIOS record to return.
-  @param[in[    Instance        Instance of SMBIOS record 0 - N-1.
+  @param[in]    Instance        Instance of SMBIOS record 0 - N-1.
@param[out]   SmbiosHandle    Returns SMBIOS handle for the matching record.

@retval NULL                  Instance of Type SMBIOS record was not found.
--
2.20.1 (Apple Git-117)

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#43178): https://edk2.groups.io/g/devel/message/43178
Mute This Topic: https://groups.io/mt/32288231/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20190702/135b6574/attachment.htm>


More information about the edk2-devel-archive mailing list