* [PATCH] MdeModulePkg: Fix various typos
@ 2019-07-13 4:57 Cœur
2019-07-13 5:31 ` Fw: " Cœur
0 siblings, 1 reply; 3+ messages in thread
From: Cœur @ 2019-07-13 4:57 UTC (permalink / raw)
To: devel; +Cc: Antoine Cœur
Fix various typos in MdeModulePkg.
Signed-off-by: Coeur <coeur@gmx.fr>
---
.../Application/CapsuleApp/CapsuleApp.c | 2 +-
.../Application/CapsuleApp/CapsuleDump.c | 6 ++---
.../PlatformVarCleanupLib/PlatVarCleanupLib.c | 10 +++----
MdeModulePkg/MdeModulePkg.dec | 26 +++++++++----------
MdeModulePkg/MdeModulePkg.uni | 8 +++---
.../Universal/DevicePathDxe/DevicePathDxe.uni | 4 +--
.../Disk/RamDiskDxe/RamDiskProtocol.c | 2 +-
.../EbcDxe/EbcDebugger/EdbCmdSymbol.c | 10 +++----
.../PlatDriOverrideDxe.uni | 10 +++----
9 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
index 3439ce5feb..4034714773 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
@@ -494,7 +494,7 @@ BuildGatherList (
}
//
- // Record descirptor header
+ // Record descriptor header
//
if (Index == 0) {
BlockDescriptorsHeader = BlockDescriptors1;
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
index 58a93568d0..d623d7c809 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
@@ -38,7 +38,7 @@ DumpUxCapsule (
{
EFI_DISPLAY_CAPSULE *DisplayCapsule;
DisplayCapsule = (EFI_DISPLAY_CAPSULE *)CapsuleHeader;
- Print(L"[UxCapusule]\n");
+ Print(L"[UxCapsule]\n");
Print(L"CapsuleHeader:\n");
Print(L" CapsuleGuid - %g\n", &DisplayCapsule->CapsuleHeader.CapsuleGuid);
Print(L" HeaderSize - 0x%x\n", DisplayCapsule->CapsuleHeader.HeaderSize);
@@ -199,7 +199,7 @@ DumpCapsule (
DumpFmpCapsule(CapsuleHeader);
}
if (IsNestedFmpCapsule(CapsuleHeader)) {
- Print(L"[NestedCapusule]\n");
+ Print(L"[NestedCapsule]\n");
Print(L"CapsuleHeader:\n");
Print(L" CapsuleGuid - %g\n", &CapsuleHeader->CapsuleGuid);
Print(L" HeaderSize - 0x%x\n", CapsuleHeader->HeaderSize);
@@ -793,7 +793,7 @@ DumpCapsuleFromDisk (
goto Done;
}
- Print(L"The infomation of the capsules:\n");
+ Print(L"The information of the capsules:\n");
for (Index = 0; Index < FileCount; Index++) {
FileHandle = NULL;
diff --git a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
index 968c044a31..d9daf7f86a 100644
--- a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
+++ b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
@@ -260,12 +260,12 @@ CreateUserVariableNode (
ASSERT (UserVariableNameNode->PromptString != NULL);
UnicodeSPrint (UserVariableNameNode->PromptString, StringSize, L" %s", UserVariableNameNode->Name);
//
- // (33 chars of "Attribtues = 0x and DataSize = 0x" + 1 terminator + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16).
+ // (33 chars of "Attributes = 0x and DataSize = 0x" + 1 terminator + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16).
//
StringSize = (33 + 1 + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16);
UserVariableNameNode->HelpString = AllocatePool (StringSize);
ASSERT (UserVariableNameNode->HelpString != NULL);
- UnicodeSPrint (UserVariableNameNode->HelpString, StringSize, L"Attribtues = 0x%08x and DataSize = 0x%x", UserVariableNameNode->Attributes, UserVariableNameNode->DataSize);
+ UnicodeSPrint (UserVariableNameNode->HelpString, StringSize, L"Attributes = 0x%08x and DataSize = 0x%x", UserVariableNameNode->Attributes, UserVariableNameNode->DataSize);
UserVariableNameNode->Deleted = FALSE;
InsertTailList (&UserVariableNode->NameLink, &UserVariableNameNode->Link);
Index++;
@@ -332,7 +332,7 @@ DestroyUserVariableNode (
it's caller's responsibility to free the memory after using it.
@retval EFI_SUCCESS Create time based payload successfully.
- @retval EFI_OUT_OF_RESOURCES There are not enough memory resourses to create time based payload.
+ @retval EFI_OUT_OF_RESOURCES There are not enough memory resources to create time based payload.
@retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval Others Unexpected error happens.
@@ -416,7 +416,7 @@ CreateTimeBasedPayload (
it's caller's responsibility to free the memory after using it.
@retval EFI_SUCCESS Create counter based payload successfully.
- @retval EFI_OUT_OF_RESOURCES There are not enough memory resourses to create time based payload.
+ @retval EFI_OUT_OF_RESOURCES There are not enough memory resources to create time based payload.
@retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval Others Unexpected error happens.
@@ -801,7 +801,7 @@ UpdateUserVariableForm (
@param[out] Progress A pointer to a string filled in with the
offset of the most recent '&' before the
first failing name / value pair (or the
- beginn ing of the string if the failure
+ beginning of the string if the failure
is in the first name / value pair) or
the terminating NULL if all was
successful.
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 12e0bbf579..f1344085cd 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -44,7 +44,7 @@
## @libraryclass Provides HII related functions.
HiiLib|Include/Library/HiiLib.h
- ## @libraryclass Defines a set of interfaces on how to process capusle image update.
+ ## @libraryclass Defines a set of interfaces on how to process capsule image update.
CapsuleLib|Include/Library/CapsuleLib.h
## @libraryclass Provides global variables that are pointers
@@ -56,7 +56,7 @@
#
SecurityManagementLib|Include/Library/SecurityManagementLib.h
- ## @libraryclass OEM status code libary is used to report status code to OEM device.
+ ## @libraryclass OEM status code library is used to report status code to OEM device.
#
OemHookStatusCodeLib|Include/Library/OemHookStatusCodeLib.h
@@ -117,7 +117,7 @@
#
BootLogoLib|Include/Library/BootLogoLib.h
- ## @libraryclass Provides interfaces about Ipmi submit generic commond.
+ ## @libraryclass Provides interfaces about Ipmi submit generic command.
#
IpmiLib|Include/Library/IpmiLib.h
@@ -170,7 +170,7 @@
# Include/Guid/MdeModuleHii.h
gEfiIfrTianoGuid = { 0xf0b1735, 0x87a0, 0x4193, {0xb2, 0x66, 0x53, 0x8c, 0x38, 0xaf, 0x48, 0xce }}
- ## Guid for EDKII implementation extension, used to indaicate there are bit fields in the varstore.
+ ## Guid for EDKII implementation extension, used to indicate there are bit fields in the varstore.
# Include/Guid/MdeModuleHii.h
gEdkiiIfrBitVarstoreGuid = {0x82DDD68B, 0x9163, 0x4187, {0x9B, 0x27, 0x20, 0xA8, 0xFD, 0x60,0xA7, 0x1D}}
@@ -206,7 +206,7 @@
# Include/Guid/CapsuleVendor.h
gEfiCapsuleVendorGuid = { 0x711C703F, 0xC285, 0x4B10, { 0xA3, 0xB0, 0x36, 0xEC, 0xBD, 0x3C, 0x8B, 0xE2 }}
- ## Guid specifiy the device is the StdErr device.
+ ## Guid specify the device is the StdErr device.
# Include/Guid/StandardErrorDevice.h
gEfiStandardErrorDeviceGuid = { 0xD3B36F2D, 0xD551, 0x11D4, { 0x9A, 0x46, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }}
@@ -532,7 +532,7 @@
## Include/Protocol/SmmVarCheck.h
gEdkiiSmmVarCheckProtocolGuid = { 0xb0d8f3c1, 0xb7de, 0x4c11, { 0xbc, 0x89, 0x2f, 0xb5, 0x62, 0xc8, 0xc4, 0x11 } }
- ## This protocol is similar with DXE FVB protocol and used in the UEFI SMM evvironment.
+ ## This protocol is similar with DXE FVB protocol and used in the UEFI SMM environment.
# Include/Protocol/SmmFirmwareVolumeBlock.h
gEfiSmmFirmwareVolumeBlockProtocolGuid = { 0xd326d041, 0xbd31, 0x4c01, { 0xb5, 0xa8, 0x62, 0x8b, 0xe8, 0x7f, 0x6, 0x53 }}
@@ -1165,7 +1165,7 @@
# This PCD is ignored if PcdSerialUseHardwareFlowControl is FALSE.<BR><BR>
# TRUE - 16550 serial Tx operations will be blocked if DSR is not asserted.<BR>
# FALSE - 16550 serial Tx operations will not be blocked if DSR is not asserted.<BR>
- # @Prompt Enable serial port cable detetion.
+ # @Prompt Enable serial port cable detection.
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|FALSE|BOOLEAN|0x00020006
## Base address of 16550 serial port registers in MMIO or I/O space. Default is 0x3F8.
@@ -1335,7 +1335,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0x0000000|UINT64|0x00001048
## PCI Serial Device Info. It is an array of Device, Function, and Power Management
- # information that describes the path that contains zero or more PCI to PCI briges
+ # information that describes the path that contains zero or more PCI to PCI bridges
# followed by a PCI serial device. Each array entry is 4-bytes in length. The
# first byte is the PCI Device Number, then second byte is the PCI Function Number,
# and the last two bytes are the offset to the PCI power management capabilities
@@ -1388,7 +1388,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0xdc, 0x5b, 0xc2, 0xee, 0xf2, 0x67, 0x95, 0x4d, 0xb1, 0xd5, 0xf8, 0x1b, 0x20, 0x39, 0xd1, 0x1d }|VOID*|0x0001006b
## This PCD points to the formset GUID of the driver health management form
- # The form will be popped up by BDS core when there are Configuration Required driver health intances.
+ # The form will be popped up by BDS core when there are Configuration Required driver health instances.
# Platform can customize the PCD to point to different formset.
# @Prompt Driver Health Management Form
gEfiMdeModulePkgTokenSpaceGuid.PcdDriverHealthConfigureForm|{ 0xf4, 0xd9, 0x96, 0x42, 0xfc, 0xf6, 0xde, 0x4d, 0x86, 0x85, 0x8c, 0xe2, 0xd7, 0x9d, 0x90, 0xf0 }|VOID*|0x0001006c
@@ -1619,7 +1619,7 @@
## This PCD defines the times to print hello world string.
# This PCD is a sample to explain UINT32 PCD usage.
- # @Prompt HellowWorld print times.
+ # @Prompt HelloWorld print times.
gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintTimes|1|UINT32|0x40000005
## This PCD defines the HelloWorld print string.
@@ -1633,7 +1633,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x6400000|UINT32|0x0001001e
## Indicates the maximum size of the capsule image without a reset flag that the platform can support.
- # The default max size is 10MB (0xa00000) for the casule image without reset flag setting.
+ # The default max size is 10MB (0xa00000) for the capsule image without reset flag setting.
# @Prompt Max size of non-populated capsule.
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0xa00000|UINT32|0x0001001f
@@ -1880,8 +1880,8 @@
# 3) Set EfiRuntimeServicesData to be EFI_MEMORY_XP.
# 4) Set EfiMemoryMappedIO and EfiMemoryMappedIOPortSpace to be EFI_MEMORY_XP.
#
- # NOTE: Platform need gurantee this PCD is set correctly. Platform should set
- # this PCD to be TURE if and only if all runtime driver has seperated Code/Data
+ # NOTE: Platform need guarantee this PCD is set correctly. Platform should set
+ # this PCD to be TRUE if and only if all runtime driver has separated Code/Data
# section. If PE code/data sections are merged, the result is unpredictable.
#
# UEFI 2.6 specification does not recommend to use this BIT0 attribute.
diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni
index 2bd1ad29f2..c2733e84fd 100644
--- a/MdeModulePkg/MdeModulePkg.uni
+++ b/MdeModulePkg/MdeModulePkg.uni
@@ -310,7 +310,7 @@
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSerialPciDeviceInfo_PROMPT #language en-US "PCI Serial Device Info"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSerialPciDeviceInfo_HELP #language en-US "PCI Serial Device Info. It is an array of Device, Function, and Power Management\n"
- "information that describes the path that contains zero or more PCI to PCI briges\n"
+ "information that describes the path that contains zero or more PCI to PCI bridges\n"
"followed by a PCI serial device. Each array entry is 4-bytes in length. The\n"
"first byte is the PCI Device Number, then second byte is the PCI Function Number,\n"
"and the last two bytes are the offset to the PCI power management capabilities\n"
@@ -865,7 +865,7 @@
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdDriverHealthConfigureForm_PROMPT #language en-US "Driver Health Management Form"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdDriverHealthConfigureForm_HELP #language en-US "This PCD points to the formset GUID of the driver health management form\n"
- "The form will be popped up by BDS core when there are Configuration Required driver health intances.\n"
+ "The form will be popped up by BDS core when there are Configuration Required driver health instances.\n"
"Platform can customize the PCD to point to different formset."
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSetupVideoHorizontalResolution_PROMPT #language en-US "Video Horizontal Resolution of Text Setup"
@@ -906,8 +906,8 @@
"3) Set EfiRuntimeServicesData to be EFI_MEMORY_XP.\n"
"4) Set EfiMemoryMappedIO and EfiMemoryMappedIOPortSpace to be EFI_MEMORY_XP.\n"
"\n"
- "NOTE: Platform need gurantee this PCD is set correctly. Platform should set\n"
- "this PCD to be TURE if and only if all runtime driver has seperated Code/Data\n"
+ "NOTE: Platform need guarantee this PCD is set correctly. Platform should set\n"
+ "this PCD to be TRUE if and only if all runtime driver has separated Code/Data\n"
"section. If PE code/data sections are merged, the result is unpredictable.\n"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdShadowPeimOnBoot_HELP #language en-US "Indicates if to shadow PEIM and PeiCore after memory is ready.<BR><BR>\n"
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni b/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
index 05337a7b2e..7769da07ba 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
@@ -2,7 +2,7 @@
// Device path driver that produces three UEFI device path protocols.
//
// This driver produces Device Path Utilities protocol and optionally
-// DevicePahtToText and DevicePathFromText protocols based on feature flags
+// DevicePathToText and DevicePathFromText protocols based on feature flags
// PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText
// respectively.
//
@@ -15,5 +15,5 @@
#string STR_MODULE_ABSTRACT #language en-US "Produces three UEFI device path protocols"
-#string STR_MODULE_DESCRIPTION #language en-US "This driver produces Device Path Utilities protocol and optionally DevicePahtToText and DevicePathFromText protocols based on feature flags PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText respectively."
+#string STR_MODULE_DESCRIPTION #language en-US "This driver produces Device Path Utilities protocol and optionally DevicePathToText and DevicePathFromText protocols based on feature flags PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText respectively."
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
index 36d635e4bc..bcc48e10c3 100644
--- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
+++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
@@ -194,7 +194,7 @@ RamDiskPublishNfit (
MemoryFound = TRUE;
DEBUG ((
EFI_D_INFO,
- "RamDiskPublishNfit: RAM disk with reserved meomry type, will publish to NFIT.\n"
+ "RamDiskPublishNfit: RAM disk with reserved memory type, will publish to NFIT.\n"
));
break;
}
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
index 8e305e4243..d33dac31d0 100644
--- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
+++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
@@ -100,7 +100,7 @@ CHAR16 *mSymbolTypeStr[] = {
/**
- Comvert Symbol Type to string.
+ Convert Symbol Type to string.
@param Type - Symbol Type
@@ -144,10 +144,10 @@ DebuggerDisplaySymbolAccrodingToAddress (
//
CandidateAddress = EbdFindSymbolAddress (Address, EdbMatchSymbolTypeNearestAddress, &Object, &Entry);
if (CandidateAddress == 0 || CandidateAddress == (UINTN) -1) {
- EDBPrint (L"Symbole at Address not found!\n");
+ EDBPrint (L"Symbol at Address not found!\n");
return EFI_DEBUG_CONTINUE;
} else if (Address != CandidateAddress) {
- EDBPrint (L"Symbole at Address not found, print nearest one!\n");
+ EDBPrint (L"Symbol at Address not found, print nearest one!\n");
}
//
@@ -211,7 +211,7 @@ DebuggerDisplaySymbolAccrodingToName (
}
//
- // Go throuth each symbol file
+ // Go through each symbol file
//
Object = DebuggerPrivate->DebuggerSymbolContext.Object;
for (Index = 0; Index < DebuggerPrivate->DebuggerSymbolContext.ObjectCount; Index++, Object++) {
@@ -476,7 +476,7 @@ DebuggerLoadSymbol (
}
//
- // Go throuth each file under this dir
+ // Go through each file under this dir
//
Index = 0;
CodFileName = GetFileNameUnderDir (DebuggerPrivate, DirName, L".cod", &Index);
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
index 9905a28d70..895c9a69c0 100644
--- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
+++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
@@ -10,11 +10,11 @@
// drivers to controllers.
//
// The main flow:
-// 1. It dynamicly locate all controller device path.
-// 2. It dynamicly locate all drivers which support binding protocol.
-// 3. It export and dynamicly update two menu to let user select the
+// 1. It dynamically locates all controller device path.
+// 2. It dynamically locates all drivers which support binding protocol.
+// 3. It exports and dynamically update two menu to let user select the
// mapping between drivers to controllers.
-// 4. It save all the mapping info in NV variables for the following boot,
+// 4. It saves all the mapping info in NV variables for the following boot,
// which will be consumed by GetDriver API of the produced the platform override protocol.
//
// Caution: This module is a sample implementation for the test purpose.
@@ -32,6 +32,6 @@
"The main flow:<BR>\n"
"1. It dynamically locates all controller device path.<BR>\n"
"2. It dynamically locates all drivers which support binding protocol.<BR>\n"
- "3. It exports and dynamicly updates two menu to let user select the mapping between drivers to controllers.<BR>\n"
+ "3. It exports and dynamically updates two menu to let user select the mapping between drivers to controllers.<BR>\n"
"4. It saves all the mapping info in NV variables for the following boot, which will be consumed by GetDriver API of the produced the platform override protocol.<BR>"
--
2.20.1 (Apple Git-117)
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Fw: [PATCH] MdeModulePkg: Fix various typos
2019-07-13 4:57 [PATCH] MdeModulePkg: Fix various typos Cœur
@ 2019-07-13 5:31 ` Cœur
2019-07-15 1:35 ` Wu, Hao A
0 siblings, 1 reply; 3+ messages in thread
From: Cœur @ 2019-07-13 5:31 UTC (permalink / raw)
To: devel; +Cc: jian.j.wang, hao.a.wu, ray.ni, star.zeng
[-- Attachment #1: Type: text/html, Size: 22388 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MdeModulePkg: Fix various typos
2019-07-13 5:31 ` Fw: " Cœur
@ 2019-07-15 1:35 ` Wu, Hao A
0 siblings, 0 replies; 3+ messages in thread
From: Wu, Hao A @ 2019-07-15 1:35 UTC (permalink / raw)
To: Antoine Coeur, devel@edk2.groups.io; +Cc: Wang, Jian J, Ni, Ray, Zeng, Star
[-- Attachment #1: Type: text/plain, Size: 19997 bytes --]
Hello Coeur,
Thanks for the effort.
For other packages, I saw you always use one patch to address all the
typos you found in that package.
As you mentioned, the typos number in MdeModulePkg is rather large so you
decide to split them into multiple patches. So could you help to do it in
finer granularity and use 1 patch to address the typos in 1 module/library?
If the number of patches is huge (maybe over 20), you may push them on a
branch within your fork of the edk2 repo and add the link of such branch
for review.
Thanks in advance.
Best Regards,
Hao Wu
From: Antoine Coeur [mailto:Coeur@gmx.fr]
Sent: Saturday, July 13, 2019 1:31 PM
To: devel@edk2.groups.io
Cc: Wang, Jian J; Wu, Hao A; Ni, Ray; Zeng, Star
Subject: Fw: [PATCH] MdeModulePkg: Fix various typos
CC the maintainers.
This is only a small subset of all the spelling/typo issues from MdeModulePkg.
But I don't want to overload you with too much to review, so I'll only post one MdeModulePkg batch at a time.
Coeur
Gesendet: Samstag, 13. Juli 2019 um 12:57 Uhr
Von: "Antoine Cœur" <coeur@gmx.fr>
An: devel@edk2.groups.io
Cc: "Antoine Cœur" <coeur@gmx.fr>
Betreff: [PATCH] MdeModulePkg: Fix various typos
Fix various typos in MdeModulePkg.
Signed-off-by: Coeur <coeur@gmx.fr>
---
.../Application/CapsuleApp/CapsuleApp.c | 2 +-
.../Application/CapsuleApp/CapsuleDump.c | 6 ++---
.../PlatformVarCleanupLib/PlatVarCleanupLib.c | 10 +++----
MdeModulePkg/MdeModulePkg.dec | 26 +++++++++----------
MdeModulePkg/MdeModulePkg.uni | 8 +++---
.../Universal/DevicePathDxe/DevicePathDxe.uni | 4 +--
.../Disk/RamDiskDxe/RamDiskProtocol.c | 2 +-
.../EbcDxe/EbcDebugger/EdbCmdSymbol.c | 10 +++----
.../PlatDriOverrideDxe.uni | 10 +++----
9 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
index 3439ce5feb..4034714773 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
@@ -494,7 +494,7 @@ BuildGatherList (
}
//
- // Record descirptor header
+ // Record descriptor header
//
if (Index == 0) {
BlockDescriptorsHeader = BlockDescriptors1;
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
index 58a93568d0..d623d7c809 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
@@ -38,7 +38,7 @@ DumpUxCapsule (
{
EFI_DISPLAY_CAPSULE *DisplayCapsule;
DisplayCapsule = (EFI_DISPLAY_CAPSULE *)CapsuleHeader;
- Print(L"[UxCapusule]\n");
+ Print(L"[UxCapsule]\n");
Print(L"CapsuleHeader:\n");
Print(L" CapsuleGuid - %g\n", &DisplayCapsule->CapsuleHeader.CapsuleGuid);
Print(L" HeaderSize - 0x%x\n", DisplayCapsule->CapsuleHeader.HeaderSize);
@@ -199,7 +199,7 @@ DumpCapsule (
DumpFmpCapsule(CapsuleHeader);
}
if (IsNestedFmpCapsule(CapsuleHeader)) {
- Print(L"[NestedCapusule]\n");
+ Print(L"[NestedCapsule]\n");
Print(L"CapsuleHeader:\n");
Print(L" CapsuleGuid - %g\n", &CapsuleHeader->CapsuleGuid);
Print(L" HeaderSize - 0x%x\n", CapsuleHeader->HeaderSize);
@@ -793,7 +793,7 @@ DumpCapsuleFromDisk (
goto Done;
}
- Print(L"The infomation of the capsules:\n");
+ Print(L"The information of the capsules:\n");
for (Index = 0; Index < FileCount; Index++) {
FileHandle = NULL;
diff --git a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
index 968c044a31..d9daf7f86a 100644
--- a/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
+++ b/MdeModulePkg/Library/PlatformVarCleanupLib/PlatVarCleanupLib.c
@@ -260,12 +260,12 @@ CreateUserVariableNode (
ASSERT (UserVariableNameNode->PromptString != NULL);
UnicodeSPrint (UserVariableNameNode->PromptString, StringSize, L" %s", UserVariableNameNode->Name);
//
- // (33 chars of "Attribtues = 0x and DataSize = 0x" + 1 terminator + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16).
+ // (33 chars of "Attributes = 0x and DataSize = 0x" + 1 terminator + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16).
//
StringSize = (33 + 1 + (sizeof (UINT32) + sizeof (UINTN)) * 2) * sizeof (CHAR16);
UserVariableNameNode->HelpString = AllocatePool (StringSize);
ASSERT (UserVariableNameNode->HelpString != NULL);
- UnicodeSPrint (UserVariableNameNode->HelpString, StringSize, L"Attribtues = 0x%08x and DataSize = 0x%x", UserVariableNameNode->Attributes, UserVariableNameNode->DataSize);
+ UnicodeSPrint (UserVariableNameNode->HelpString, StringSize, L"Attributes = 0x%08x and DataSize = 0x%x", UserVariableNameNode->Attributes, UserVariableNameNode->DataSize);
UserVariableNameNode->Deleted = FALSE;
InsertTailList (&UserVariableNode->NameLink, &UserVariableNameNode->Link);
Index++;
@@ -332,7 +332,7 @@ DestroyUserVariableNode (
it's caller's responsibility to free the memory after using it.
@retval EFI_SUCCESS Create time based payload successfully.
- @retval EFI_OUT_OF_RESOURCES There are not enough memory resourses to create time based payload.
+ @retval EFI_OUT_OF_RESOURCES There are not enough memory resources to create time based payload.
@retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval Others Unexpected error happens.
@@ -416,7 +416,7 @@ CreateTimeBasedPayload (
it's caller's responsibility to free the memory after using it.
@retval EFI_SUCCESS Create counter based payload successfully.
- @retval EFI_OUT_OF_RESOURCES There are not enough memory resourses to create time based payload.
+ @retval EFI_OUT_OF_RESOURCES There are not enough memory resources to create time based payload.
@retval EFI_INVALID_PARAMETER The parameter is invalid.
@retval Others Unexpected error happens.
@@ -801,7 +801,7 @@ UpdateUserVariableForm (
@param[out] Progress A pointer to a string filled in with the
offset of the most recent '&' before the
first failing name / value pair (or the
- beginn ing of the string if the failure
+ beginning of the string if the failure
is in the first name / value pair) or
the terminating NULL if all was
successful.
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 12e0bbf579..f1344085cd 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -44,7 +44,7 @@
## @libraryclass Provides HII related functions.
HiiLib|Include/Library/HiiLib.h
- ## @libraryclass Defines a set of interfaces on how to process capusle image update.
+ ## @libraryclass Defines a set of interfaces on how to process capsule image update.
CapsuleLib|Include/Library/CapsuleLib.h
## @libraryclass Provides global variables that are pointers
@@ -56,7 +56,7 @@
#
SecurityManagementLib|Include/Library/SecurityManagementLib.h
- ## @libraryclass OEM status code libary is used to report status code to OEM device.
+ ## @libraryclass OEM status code library is used to report status code to OEM device.
#
OemHookStatusCodeLib|Include/Library/OemHookStatusCodeLib.h
@@ -117,7 +117,7 @@
#
BootLogoLib|Include/Library/BootLogoLib.h
- ## @libraryclass Provides interfaces about Ipmi submit generic commond.
+ ## @libraryclass Provides interfaces about Ipmi submit generic command.
#
IpmiLib|Include/Library/IpmiLib.h
@@ -170,7 +170,7 @@
# Include/Guid/MdeModuleHii.h
gEfiIfrTianoGuid = { 0xf0b1735, 0x87a0, 0x4193, {0xb2, 0x66, 0x53, 0x8c, 0x38, 0xaf, 0x48, 0xce }}
- ## Guid for EDKII implementation extension, used to indaicate there are bit fields in the varstore.
+ ## Guid for EDKII implementation extension, used to indicate there are bit fields in the varstore.
# Include/Guid/MdeModuleHii.h
gEdkiiIfrBitVarstoreGuid = {0x82DDD68B, 0x9163, 0x4187, {0x9B, 0x27, 0x20, 0xA8, 0xFD, 0x60,0xA7, 0x1D}}
@@ -206,7 +206,7 @@
# Include/Guid/CapsuleVendor.h
gEfiCapsuleVendorGuid = { 0x711C703F, 0xC285, 0x4B10, { 0xA3, 0xB0, 0x36, 0xEC, 0xBD, 0x3C, 0x8B, 0xE2 }}
- ## Guid specifiy the device is the StdErr device.
+ ## Guid specify the device is the StdErr device.
# Include/Guid/StandardErrorDevice.h
gEfiStandardErrorDeviceGuid = { 0xD3B36F2D, 0xD551, 0x11D4, { 0x9A, 0x46, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }}
@@ -532,7 +532,7 @@
## Include/Protocol/SmmVarCheck.h
gEdkiiSmmVarCheckProtocolGuid = { 0xb0d8f3c1, 0xb7de, 0x4c11, { 0xbc, 0x89, 0x2f, 0xb5, 0x62, 0xc8, 0xc4, 0x11 } }
- ## This protocol is similar with DXE FVB protocol and used in the UEFI SMM evvironment.
+ ## This protocol is similar with DXE FVB protocol and used in the UEFI SMM environment.
# Include/Protocol/SmmFirmwareVolumeBlock.h
gEfiSmmFirmwareVolumeBlockProtocolGuid = { 0xd326d041, 0xbd31, 0x4c01, { 0xb5, 0xa8, 0x62, 0x8b, 0xe8, 0x7f, 0x6, 0x53 }}
@@ -1165,7 +1165,7 @@
# This PCD is ignored if PcdSerialUseHardwareFlowControl is FALSE.<BR><BR>
# TRUE - 16550 serial Tx operations will be blocked if DSR is not asserted.<BR>
# FALSE - 16550 serial Tx operations will not be blocked if DSR is not asserted.<BR>
- # @Prompt Enable serial port cable detetion.
+ # @Prompt Enable serial port cable detection.
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|FALSE|BOOLEAN|0x00020006
## Base address of 16550 serial port registers in MMIO or I/O space. Default is 0x3F8.
@@ -1335,7 +1335,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0x0000000|UINT64|0x00001048
## PCI Serial Device Info. It is an array of Device, Function, and Power Management
- # information that describes the path that contains zero or more PCI to PCI briges
+ # information that describes the path that contains zero or more PCI to PCI bridges
# followed by a PCI serial device. Each array entry is 4-bytes in length. The
# first byte is the PCI Device Number, then second byte is the PCI Function Number,
# and the last two bytes are the offset to the PCI power management capabilities
@@ -1388,7 +1388,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0xdc, 0x5b, 0xc2, 0xee, 0xf2, 0x67, 0x95, 0x4d, 0xb1, 0xd5, 0xf8, 0x1b, 0x20, 0x39, 0xd1, 0x1d }|VOID*|0x0001006b
## This PCD points to the formset GUID of the driver health management form
- # The form will be popped up by BDS core when there are Configuration Required driver health intances.
+ # The form will be popped up by BDS core when there are Configuration Required driver health instances.
# Platform can customize the PCD to point to different formset.
# @Prompt Driver Health Management Form
gEfiMdeModulePkgTokenSpaceGuid.PcdDriverHealthConfigureForm|{ 0xf4, 0xd9, 0x96, 0x42, 0xfc, 0xf6, 0xde, 0x4d, 0x86, 0x85, 0x8c, 0xe2, 0xd7, 0x9d, 0x90, 0xf0 }|VOID*|0x0001006c
@@ -1619,7 +1619,7 @@
## This PCD defines the times to print hello world string.
# This PCD is a sample to explain UINT32 PCD usage.
- # @Prompt HellowWorld print times.
+ # @Prompt HelloWorld print times.
gEfiMdeModulePkgTokenSpaceGuid.PcdHelloWorldPrintTimes|1|UINT32|0x40000005
## This PCD defines the HelloWorld print string.
@@ -1633,7 +1633,7 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x6400000|UINT32|0x0001001e
## Indicates the maximum size of the capsule image without a reset flag that the platform can support.
- # The default max size is 10MB (0xa00000) for the casule image without reset flag setting.
+ # The default max size is 10MB (0xa00000) for the capsule image without reset flag setting.
# @Prompt Max size of non-populated capsule.
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0xa00000|UINT32|0x0001001f
@@ -1880,8 +1880,8 @@
# 3) Set EfiRuntimeServicesData to be EFI_MEMORY_XP.
# 4) Set EfiMemoryMappedIO and EfiMemoryMappedIOPortSpace to be EFI_MEMORY_XP.
#
- # NOTE: Platform need gurantee this PCD is set correctly. Platform should set
- # this PCD to be TURE if and only if all runtime driver has seperated Code/Data
+ # NOTE: Platform need guarantee this PCD is set correctly. Platform should set
+ # this PCD to be TRUE if and only if all runtime driver has separated Code/Data
# section. If PE code/data sections are merged, the result is unpredictable.
#
# UEFI 2.6 specification does not recommend to use this BIT0 attribute.
diff --git a/MdeModulePkg/MdeModulePkg.uni b/MdeModulePkg/MdeModulePkg.uni
index 2bd1ad29f2..c2733e84fd 100644
--- a/MdeModulePkg/MdeModulePkg.uni
+++ b/MdeModulePkg/MdeModulePkg.uni
@@ -310,7 +310,7 @@
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSerialPciDeviceInfo_PROMPT #language en-US "PCI Serial Device Info"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSerialPciDeviceInfo_HELP #language en-US "PCI Serial Device Info. It is an array of Device, Function, and Power Management\n"
- "information that describes the path that contains zero or more PCI to PCI briges\n"
+ "information that describes the path that contains zero or more PCI to PCI bridges\n"
"followed by a PCI serial device. Each array entry is 4-bytes in length. The\n"
"first byte is the PCI Device Number, then second byte is the PCI Function Number,\n"
"and the last two bytes are the offset to the PCI power management capabilities\n"
@@ -865,7 +865,7 @@
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdDriverHealthConfigureForm_PROMPT #language en-US "Driver Health Management Form"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdDriverHealthConfigureForm_HELP #language en-US "This PCD points to the formset GUID of the driver health management form\n"
- "The form will be popped up by BDS core when there are Configuration Required driver health intances.\n"
+ "The form will be popped up by BDS core when there are Configuration Required driver health instances.\n"
"Platform can customize the PCD to point to different formset."
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdSetupVideoHorizontalResolution_PROMPT #language en-US "Video Horizontal Resolution of Text Setup"
@@ -906,8 +906,8 @@
"3) Set EfiRuntimeServicesData to be EFI_MEMORY_XP.\n"
"4) Set EfiMemoryMappedIO and EfiMemoryMappedIOPortSpace to be EFI_MEMORY_XP.\n"
"\n"
- "NOTE: Platform need gurantee this PCD is set correctly. Platform should set\n"
- "this PCD to be TURE if and only if all runtime driver has seperated Code/Data\n"
+ "NOTE: Platform need guarantee this PCD is set correctly. Platform should set\n"
+ "this PCD to be TRUE if and only if all runtime driver has separated Code/Data\n"
"section. If PE code/data sections are merged, the result is unpredictable.\n"
#string STR_gEfiMdeModulePkgTokenSpaceGuid_PcdShadowPeimOnBoot_HELP #language en-US "Indicates if to shadow PEIM and PeiCore after memory is ready.<BR><BR>\n"
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni b/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
index 05337a7b2e..7769da07ba 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.uni
@@ -2,7 +2,7 @@
// Device path driver that produces three UEFI device path protocols.
//
// This driver produces Device Path Utilities protocol and optionally
-// DevicePahtToText and DevicePathFromText protocols based on feature flags
+// DevicePathToText and DevicePathFromText protocols based on feature flags
// PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText
// respectively.
//
@@ -15,5 +15,5 @@
#string STR_MODULE_ABSTRACT #language en-US "Produces three UEFI device path protocols"
-#string STR_MODULE_DESCRIPTION #language en-US "This driver produces Device Path Utilities protocol and optionally DevicePahtToText and DevicePathFromText protocols based on feature flags PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText respectively."
+#string STR_MODULE_DESCRIPTION #language en-US "This driver produces Device Path Utilities protocol and optionally DevicePathToText and DevicePathFromText protocols based on feature flags PcdDevicePathSupportDevicePathToText & PcdDevicePathSupportDevicePathFromText respectively."
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
index 36d635e4bc..bcc48e10c3 100644
--- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
+++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
@@ -194,7 +194,7 @@ RamDiskPublishNfit (
MemoryFound = TRUE;
DEBUG ((
EFI_D_INFO,
- "RamDiskPublishNfit: RAM disk with reserved meomry type, will publish to NFIT.\n"
+ "RamDiskPublishNfit: RAM disk with reserved memory type, will publish to NFIT.\n"
));
break;
}
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
index 8e305e4243..d33dac31d0 100644
--- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
+++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCmdSymbol.c
@@ -100,7 +100,7 @@ CHAR16 *mSymbolTypeStr[] = {
/**
- Comvert Symbol Type to string.
+ Convert Symbol Type to string.
@param Type - Symbol Type
@@ -144,10 +144,10 @@ DebuggerDisplaySymbolAccrodingToAddress (
//
CandidateAddress = EbdFindSymbolAddress (Address, EdbMatchSymbolTypeNearestAddress, &Object, &Entry);
if (CandidateAddress == 0 || CandidateAddress == (UINTN) -1) {
- EDBPrint (L"Symbole at Address not found!\n");
+ EDBPrint (L"Symbol at Address not found!\n");
return EFI_DEBUG_CONTINUE;
} else if (Address != CandidateAddress) {
- EDBPrint (L"Symbole at Address not found, print nearest one!\n");
+ EDBPrint (L"Symbol at Address not found, print nearest one!\n");
}
//
@@ -211,7 +211,7 @@ DebuggerDisplaySymbolAccrodingToName (
}
//
- // Go throuth each symbol file
+ // Go through each symbol file
//
Object = DebuggerPrivate->DebuggerSymbolContext.Object;
for (Index = 0; Index < DebuggerPrivate->DebuggerSymbolContext.ObjectCount; Index++, Object++) {
@@ -476,7 +476,7 @@ DebuggerLoadSymbol (
}
//
- // Go throuth each file under this dir
+ // Go through each file under this dir
//
Index = 0;
CodFileName = GetFileNameUnderDir (DebuggerPrivate, DirName, L".cod", &Index);
diff --git a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
index 9905a28d70..895c9a69c0 100644
--- a/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
+++ b/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.uni
@@ -10,11 +10,11 @@
// drivers to controllers.
//
// The main flow:
-// 1. It dynamicly locate all controller device path.
-// 2. It dynamicly locate all drivers which support binding protocol.
-// 3. It export and dynamicly update two menu to let user select the
+// 1. It dynamically locates all controller device path.
+// 2. It dynamically locates all drivers which support binding protocol.
+// 3. It exports and dynamically update two menu to let user select the
// mapping between drivers to controllers.
-// 4. It save all the mapping info in NV variables for the following boot,
+// 4. It saves all the mapping info in NV variables for the following boot,
// which will be consumed by GetDriver API of the produced the platform override protocol.
//
// Caution: This module is a sample implementation for the test purpose.
@@ -32,6 +32,6 @@
"The main flow:<BR>\n"
"1. It dynamically locates all controller device path.<BR>\n"
"2. It dynamically locates all drivers which support binding protocol.<BR>\n"
- "3. It exports and dynamicly updates two menu to let user select the mapping between drivers to controllers.<BR>\n"
+ "3. It exports and dynamically updates two menu to let user select the mapping between drivers to controllers.<BR>\n"
"4. It saves all the mapping info in NV variables for the following boot, which will be consumed by GetDriver API of the produced the platform override protocol.<BR>"
--
2.20.1 (Apple Git-117)
[-- Attachment #2: Type: text/html, Size: 59520 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-15 1:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-13 4:57 [PATCH] MdeModulePkg: Fix various typos Cœur
2019-07-13 5:31 ` Fw: " Cœur
2019-07-15 1:35 ` Wu, Hao A
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox