From 4f0624e87a89afce8408a87997482b383e7ba131 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Wed, 19 Oct 2016 15:01:14 +0800 Subject: [PATCH] EmbeddedPkg: Fix typos in comments - reseting -> resetting - stoping -> stopping - Libary -> Library - paramter -> parameter - availible -> available - availble -> available - proccessed -> processed Cc: Leif Lindholm Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin Reviewed-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c | 2 +- EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132.c | 2 +- EmbeddedPkg/GdbStub/GdbStub.c | 2 +- EmbeddedPkg/GdbStub/GdbStubInternal.h | 2 +- EmbeddedPkg/Include/Library/GdbSerialLib.h | 4 ++-- EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c | 2 +- EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.c | 4 ++-- EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.h | 2 +- EmbeddedPkg/Library/GdbDebugAgent/Ia32/Processor.c | 2 +- .../Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c | 4 ++-- EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c | 4 ++-- EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Capsule.c | 4 ++-- EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Rtc.c | 2 +- .../PrePiExtractGuidedSectionLib.c | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c index aabaf604f6..bdc390f352 100644 --- a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c +++ b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c @@ -1516,7 +1516,7 @@ SnpReceive ( } // - // Restart the receiver and the transmitter without reseting the FIFOs + // Restart the receiver and the transmitter without resetting the FIFOs // as it has been done by SoftReset(). // StartRx (0, Snp); diff --git a/EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132.c b/EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132.c index 5a5526c0df..f4946552a0 100644 --- a/EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132.c +++ b/EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132.c @@ -490,7 +490,7 @@ CLOSE_PCIIO: } /** - Stop this driver on ControllerHandle. Support stoping any child handles + Stop this driver on ControllerHandle. Support stopping any child handles created by this driver. @param This Protocol instance pointer. diff --git a/EmbeddedPkg/GdbStub/GdbStub.c b/EmbeddedPkg/GdbStub/GdbStub.c index 213038ad08..a75e7751af 100644 --- a/EmbeddedPkg/GdbStub/GdbStub.c +++ b/EmbeddedPkg/GdbStub/GdbStub.c @@ -325,7 +325,7 @@ SendPacket ( $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$', the packet teminating character '#' and the two digit checksum. - If host re-starts sending a packet without ending the previous packet, only the last valid packet is proccessed. + If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed. (In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.) If an ack '+' is not sent resend the packet diff --git a/EmbeddedPkg/GdbStub/GdbStubInternal.h b/EmbeddedPkg/GdbStub/GdbStubInternal.h index 521c3442e0..aec39f1ff5 100644 --- a/EmbeddedPkg/GdbStub/GdbStubInternal.h +++ b/EmbeddedPkg/GdbStub/GdbStubInternal.h @@ -573,7 +573,7 @@ SendPacket ( $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$', the packet teminating character '#' and the two digit checksum. - If host re-starts sending a packet without ending the previous packet, only the last valid packet is proccessed. + If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed. (In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.) If an ack '+' is not sent resend the packet diff --git a/EmbeddedPkg/Include/Library/GdbSerialLib.h b/EmbeddedPkg/Include/Library/GdbSerialLib.h index aa4c3ff640..9f26fed6d2 100644 --- a/EmbeddedPkg/Include/Library/GdbSerialLib.h +++ b/EmbeddedPkg/Include/Library/GdbSerialLib.h @@ -51,8 +51,8 @@ GdbSerialInit ( Check to see if a character is available from GDB. Do not read the character as that is done via GdbGetChar(). - @return TRUE - Character availible - @return FALSE - Character not availible + @return TRUE - Character available + @return FALSE - Character not available **/ BOOLEAN diff --git a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c index 2b353f0a23..8226c80ab4 100644 --- a/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c +++ b/EmbeddedPkg/Library/GdbDebugAgent/Arm/Processor.c @@ -603,7 +603,7 @@ GdbFPutString ( function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is responsible to invoke the passing-in function at the end of InitializeDebugAgent(). - If the parameter Function is not NULL, Debug Agent Libary instance will invoke it by + If the parameter Function is not NULL, Debug Agent Library instance will invoke it by passing in the Context to be its parameter. If Function() is NULL, Debug Agent Library instance will return after setup debug diff --git a/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.c b/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.c index 2e67de6f99..80aa4765c0 100644 --- a/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.c +++ b/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.c @@ -93,7 +93,7 @@ gXferObjectReadResponse ( 1) Length will generally be max remote packet size (big enough) 2) First Offset of an XML document read needs to be 0 3) This code will return back small chunks of the XML document on every read. - Each subseqent call will ask for the next availble part of the document. + Each subseqent call will ask for the next available part of the document. Note: The only variable size element in the XML is: " \n" and it is @@ -257,7 +257,7 @@ SendPacket ( $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$', the packet teminating character '#' and the two digit checksum. - If host re-starts sending a packet without ending the previous packet, only the last valid packet is proccessed. + If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed. (In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.) If an ack '+' is not sent resend the packet diff --git a/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.h b/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.h index dfdc016d9d..7d85481c4b 100644 --- a/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.h +++ b/EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.h @@ -519,7 +519,7 @@ SendPacket ( $PacketData#checksum PacketData is passed in and this function adds the packet prefix '$', the packet teminating character '#' and the two digit checksum. - If host re-starts sending a packet without ending the previous packet, only the last valid packet is proccessed. + If host re-starts sending a packet without ending the previous packet, only the last valid packet is processed. (In other words, if received packet is '$12345$12345$123456#checksum', only '$123456#checksum' will be processed.) If an ack '+' is not sent resend the packet diff --git a/EmbeddedPkg/Library/GdbDebugAgent/Ia32/Processor.c b/EmbeddedPkg/Library/GdbDebugAgent/Ia32/Processor.c index d465b21183..f1d7f3f109 100644 --- a/EmbeddedPkg/Library/GdbDebugAgent/Ia32/Processor.c +++ b/EmbeddedPkg/Library/GdbDebugAgent/Ia32/Processor.c @@ -922,7 +922,7 @@ RemoveBreakPoint ( function and pass it into InitializeDebugAgent(). InitializeDebugAgent() is responsible to invoke the passing-in function at the end of InitializeDebugAgent(). - If the parameter Function is not NULL, Debug Agent Libary instance will invoke it by + If the parameter Function is not NULL, Debug Agent Library instance will invoke it by passing in the Context to be its parameter. If Function() is NULL, Debug Agent Library instance will return after setup debug diff --git a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c index e3d1b47cc4..ffd895137e 100644 --- a/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c +++ b/EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.c @@ -94,8 +94,8 @@ GdbSerialInit ( Check to see if a character is available from GDB. Do not read the character as that is done via GdbGetChar(). - @return TRUE - Character availible - @return FALSE - Character not availible + @return TRUE - Character available + @return FALSE - Character not available **/ BOOLEAN diff --git a/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c b/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c index 7ea976ff9d..069d87ca78 100644 --- a/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c +++ b/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c @@ -165,8 +165,8 @@ GdbSerialInit ( Check to see if a character is available from GDB. Do not read the character as that is done via GdbGetChar(). - @return TRUE - Character availible - @return FALSE - Character not availible + @return TRUE - Character available + @return FALSE - Character not available **/ BOOLEAN diff --git a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Capsule.c b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Capsule.c index ec89cfdeec..0b1e6b0862 100644 --- a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Capsule.c +++ b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Capsule.c @@ -120,7 +120,7 @@ Returns: } // - //Assume that capsules have the same flags on reseting or not. + //Assume that capsules have the same flags on resetting or not. // CapsuleHeader = CapsuleHeaderArray[0]; @@ -253,7 +253,7 @@ Returns: SupportCapsuleSize(&MaxSizePopulate,&MaxSizeNonPopulate); // - //Assume that capsules have the same flags on reseting or not. + //Assume that capsules have the same flags on resetting or not. // CapsuleHeader = CapsuleHeaderArray[0]; if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) != 0) { diff --git a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Rtc.c b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Rtc.c index c35d72c03c..9e2b2e3805 100644 --- a/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Rtc.c +++ b/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/Rtc.c @@ -584,7 +584,7 @@ libGetWakeupTime ( UINT8 Century; // - // Check paramters for null pointers + // Check parameters for null pointers // if ((Enabled == NULL) || (Pending == NULL) || (Time == NULL)) { return EFI_INVALID_PARAMETER; diff --git a/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c b/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c index cee15c4be2..7b08de8ab9 100644 --- a/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c +++ b/EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.c @@ -53,7 +53,7 @@ ExtractGuidedSectionRegisterHandlers ( PRE_PI_EXTRACT_GUIDED_SECTION_DATA *SavedData; UINT32 Index; // - // Check input paramter. + // Check input parameter. // if (SectionGuid == NULL) { return RETURN_INVALID_PARAMETER; -- 2.39.2