From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.120]) by mx.groups.io with SMTP id smtpd.web10.2124.1578044454752013005 for ; Fri, 03 Jan 2020 01:40:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fJSPh7ro; spf=pass (domain: redhat.com, ip: 205.139.110.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578044453; 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=GhF73Cl0DilcB9m/xX4jqYahPR5BpDQqJsvgntEgZ2c=; b=fJSPh7roUoyh9cwtgBzjigMF07/++4snGQ7Ip9t4+GLoeRqonM8OSYdS/Qalr4lM9dWyPF Lt5pRaYIgDH1kpHYHXAYLX+l/UA6bOrtTsa+cCzC69B40Z51z09EaaP7toOxUC3PlfKjYI tr5aWOFRQ/MgKXI7UnrBF+XJ6XnfsY0= 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-6-m9wwCNzhNI22kwLVfu5d1A-1; Fri, 03 Jan 2020 04:40:52 -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 65254185432D; Fri, 3 Jan 2020 09:40:51 +0000 (UTC) Received: from x1w.redhat.com (ovpn-116-190.ams2.redhat.com [10.36.116.190]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C20860BF7; Fri, 3 Jan 2020 09:40:46 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jiaxin Wu , Siyuan Fu , Maciej Rabeda , Philippe Mathieu-Daude Subject: [PATCH v2 42/78] NetworkPkg/Library: Fix various typos Date: Fri, 3 Jan 2020 10:07:36 +0100 Message-Id: <20200103090812.10592-43-philmd@redhat.com> In-Reply-To: <20200103090812.10592-1-philmd@redhat.com> References: <20200103090812.10592-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: m9wwCNzhNI22kwLVfu5d1A-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 comments and documentation. Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Maciej Rabeda Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Maciej Rabeda Signed-off-by: Philippe Mathieu-Daude --- NetworkPkg/Include/Library/HttpLib.h | 2 +- NetworkPkg/Include/Library/IpIoLib.h | 4 ++-- NetworkPkg/Include/Library/NetLib.h | 2 +- NetworkPkg/Include/Library/TcpIoLib.h | 6 +++--- NetworkPkg/Include/Library/UdpIoLib.h | 6 +++--- NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c | 4 ++-- NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c | 16 ++++++++-------- NetworkPkg/Library/DxeNetLib/DxeNetLib.c | 16 ++++++++-------- NetworkPkg/Library/DxeNetLib/NetBuffer.c | 4 ++-- NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c | 10 +++++----- NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c | 10 +++++----- 11 files changed, 40 insertions(+), 40 deletions(-) diff --git a/NetworkPkg/Include/Library/HttpLib.h b/NetworkPkg/Include/Libr= ary/HttpLib.h index 93100eb350e5..a906126b3d6e 100644 --- a/NetworkPkg/Include/Library/HttpLib.h +++ b/NetworkPkg/Include/Library/HttpLib.h @@ -425,7 +425,7 @@ HttpFreeHeaderFields ( the HTTP request message. @param[in] Url The URL of a remote host. @param[out] RequestMsg Pointer to the created HTTP request mess= age. - NULL if any error occured. + NULL if any error occurred. @param[out] RequestMsgSize Size of the RequestMsg (in bytes). =20 @retval EFI_SUCCESS If HTTP request string was created succe= ssfully. diff --git a/NetworkPkg/Include/Library/IpIoLib.h b/NetworkPkg/Include/Libr= ary/IpIoLib.h index 2d6e090f754e..d95413e87eb1 100644 --- a/NetworkPkg/Include/Library/IpIoLib.h +++ b/NetworkPkg/Include/Library/IpIoLib.h @@ -403,7 +403,7 @@ IpIoOpen ( =20 This function is called after IpIoOpen(). The data to be sent is wrapped= in Pkt. The IP instance wrapped in IpIo is used for sending by default but = can be - overriden by Sender. Other sending configs, like source address and gate= way + overridden by Sender. Other sending configs, like source address and gat= eway address etc., are specified in OverrideData. =20 @param[in, out] IpIo Pointer to an IP_IO instance used= for sending IP @@ -508,7 +508,7 @@ IpIoConfigIp ( =20 This function pairs with IpIoAddIp(). The IpInfo is previously created b= y IpIoAddIp(). The IP_IO_IP_INFO::RefCnt is decremented and the IP instanc= e - will be dstroyed if the RefCnt is zero. + will be destroyed if the RefCnt is zero. =20 @param[in] IpIo The pointer to the IP_IO instance. @param[in] IpInfo The pointer to the IpInfo to be remove= d. diff --git a/NetworkPkg/Include/Library/NetLib.h b/NetworkPkg/Include/Libra= ry/NetLib.h index 786382a1fcff..858d0b6ba07c 100644 --- a/NetworkPkg/Include/Library/NetLib.h +++ b/NetworkPkg/Include/Library/NetLib.h @@ -748,7 +748,7 @@ EFI_STATUS If it has been removed, then restart the traversal from the head. If it hasn't been removed, then continue with the next node directly. This function will end the iterate and return the CallBack's last return= value if error happens, - or retrun EFI_SUCCESS if 2 complete passes are made with no changes in t= he number of children in the list. + or return EFI_SUCCESS if 2 complete passes are made with no changes in t= he number of children in the list. =20 @param[in] List The head of the list. @param[in] CallBack Pointer to the callback function to destr= oy one node in the list. diff --git a/NetworkPkg/Include/Library/TcpIoLib.h b/NetworkPkg/Include/Lib= rary/TcpIoLib.h index 63872f615c0a..13c163ce9920 100644 --- a/NetworkPkg/Include/Library/TcpIoLib.h +++ b/NetworkPkg/Include/Library/TcpIoLib.h @@ -200,7 +200,7 @@ TcpIoReset ( @param[in] TcpIo The TcpIo wrapping the TCP socket. @param[in] Packet The packet to transmit. =20 - @retval EFI_SUCCESS The packet is trasmitted. + @retval EFI_SUCCESS The packet is transmitted. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. @retval EFI_UNSUPPORTED One or more of the control options are no= t supported in the implementation. @@ -221,14 +221,14 @@ TcpIoTransmit ( =20 @param[in, out] TcpIo The TcpIo which wraps the socket to be dest= royed. @param[in] Packet The buffer to hold the data copy from the s= ocket rx buffer. - @param[in] AsyncMode Is this receive asyncronous or not. + @param[in] AsyncMode Is this receive asynchronous or not. @param[in] Timeout The time to wait for receiving the amount o= f data the Packet can hold. Set to NULL for infinite wait. =20 @retval EFI_SUCCESS The required amount of data is received f= rom the socket. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. @retval EFI_DEVICE_ERROR An unexpected network or system error occ= urred. - @retval EFI_OUT_OF_RESOURCES Failed to allocate momery. + @retval EFI_OUT_OF_RESOURCES Failed to allocate memory. @retval EFI_TIMEOUT Failed to receive the required amount of = data in the specified time period. @retval Others Other errors as indicated. diff --git a/NetworkPkg/Include/Library/UdpIoLib.h b/NetworkPkg/Include/Lib= rary/UdpIoLib.h index c3cddfafb151..cd4ebeb87a43 100644 --- a/NetworkPkg/Include/Library/UdpIoLib.h +++ b/NetworkPkg/Include/Library/UdpIoLib.h @@ -43,7 +43,7 @@ typedef struct { =20 This prototype is used by both receive and sending when calling UdpIoRecvDatagram() or UdpIoSendDatagram(). When receiving, Netbuf is al= located by the - UDP access point and released by the user. When sending, the user alloca= tes the the NetBuf, + UDP access point and released by the user. When sending, the user alloca= tes the NetBuf, which is then provided to the callback as a reference. =20 @param[in] Packet The packet received or sent. @@ -197,7 +197,7 @@ BOOLEAN =20 @param[in] UdpIo The UDP_IO to cancel packet. @param[in] IoStatus The IoStatus to return to the packet o= wners. - @param[in] ToCancel The select funtion to test whether to = cancel this + @param[in] ToCancel The select function to test whether to= cancel this packet or not. @param[in] Context The opaque parameter to the ToCancel. =20 @@ -228,7 +228,7 @@ UdpIoCancelDgrams ( @param[in] ImageHandle The image handle for the driver. @param[in] Configure The function to configure the created = UDP child. @param[in] UdpVersion The UDP protocol version, UDP4 or UDP6= . - @param[in] Context The opaque parameter for the Configure= funtion. + @param[in] Context The opaque parameter for the Configure= function. =20 @return The newly-created UDP_IO, or NULL if failed. =20 diff --git a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c b/NetworkPkg/Librar= y/DxeHttpLib/DxeHttpLib.c index 8b74554cd961..180d9321025a 100644 --- a/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/NetworkPkg/Library/DxeHttpLib/DxeHttpLib.c @@ -1677,7 +1677,7 @@ HttpGetFieldNameAndValue ( /** Free existing HeaderFields. =20 - @param[in] HeaderFields Pointer to array of key/value header pair= s waitting for free. + @param[in] HeaderFields Pointer to array of key/value header pair= s waiting for free. @param[in] FieldCount The number of header pairs in HeaderField= s. =20 **/ @@ -1717,7 +1717,7 @@ HttpFreeHeaderFields ( the HTTP request message. @param[in] Url The URL of a remote host. @param[out] RequestMsg Pointer to the created HTTP request mess= age. - NULL if any error occured. + NULL if any error occurred. @param[out] RequestMsgSize Size of the RequestMsg (in bytes). =20 @retval EFI_SUCCESS If HTTP request string was created succe= ssfully. diff --git a/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c b/NetworkPkg/Librar= y/DxeIpIoLib/DxeIpIoLib.c index d45f0070b3fc..0a816da00140 100644 --- a/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c +++ b/NetworkPkg/Library/DxeIpIoLib/DxeIpIoLib.c @@ -123,7 +123,7 @@ IpIoTransmitHandler ( =20 @retval EFI_SUCCESS The IP child is created and the IP prot= ocol interface is retrieved. - @retval EFI_UNSUPPORTED Upsupported IpVersion. + @retval EFI_UNSUPPORTED Unsupported IpVersion. @retval Others The required operation failed. =20 **/ @@ -191,7 +191,7 @@ IpIoCreateIpChildOpenProtocol ( =20 =20 /** - This function close the previously openned IP protocol and destroy the I= P child. + This function close the previously opened IP protocol and destroy the IP= child. =20 @param[in] ControllerHandle The controller handle. @param[in] ImageHandle The image handle. @@ -201,7 +201,7 @@ IpIoCreateIpChildOpenProtocol ( =20 @retval EFI_SUCCESS The IP protocol is closed and the releva= nt IP child is destroyed. - @retval EFI_UNSUPPORTED Upsupported IpVersion. + @retval EFI_UNSUPPORTED Unsupported IpVersion. @retval Others The required operation failed. =20 **/ @@ -228,7 +228,7 @@ IpIoCloseProtocolDestroyIpChild ( } =20 // - // Close the previously openned IP protocol. + // Close the previously opened IP protocol. // Status =3D gBS->CloseProtocol ( ChildHandle, @@ -626,7 +626,7 @@ IpIoExtFree ( @param[in] Context Pointer to the context. @param[in] NotifyData Pointer to the notify data. @param[in] Dest Pointer to the destination IP addr= ess. - @param[in] Override Pointer to the overriden IP_IO dat= a. + @param[in] Override Pointer to the overridden IP_IO da= ta. =20 @return Pointer to the data structure created to wrap the packet. If any= error occurs, then return NULL. @@ -1497,7 +1497,7 @@ IpIoStop ( IpIo->IsConfigured =3D FALSE; =20 // - // Detroy the Ip List used by IpIo + // Destroy the Ip List used by IpIo // =20 while (!IsListEmpty (&(IpIo->IpList))) { @@ -1577,7 +1577,7 @@ IpIoDestroy ( =20 This function is called after IpIoOpen(). The data to be sent is wrapped= in Pkt. The IP instance wrapped in IpIo is used for sending by default but = can be - overriden by Sender. Other sending configs, like source address and gate= way + overridden by Sender. Other sending configs, like source address and gat= eway address etc., are specified in OverrideData. =20 @param[in, out] IpIo Pointer to an IP_IO instance used= for sending IP @@ -1991,7 +1991,7 @@ IpIoConfigIp ( =20 This function pairs with IpIoAddIp(). The IpInfo is previously created b= y IpIoAddIp(). The IP_IO_IP_INFO::RefCnt is decremented and the IP instanc= e - will be dstroyed if the RefCnt is zero. + will be destroyed if the RefCnt is zero. =20 @param[in] IpIo Pointer to the IP_IO instance. @param[in] IpInfo Pointer to the IpInfo to be removed. diff --git a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c b/NetworkPkg/Library/= DxeNetLib/DxeNetLib.c index 4f8a1226dae7..2a555a7b90fa 100644 --- a/NetworkPkg/Library/DxeNetLib/DxeNetLib.c +++ b/NetworkPkg/Library/DxeNetLib/DxeNetLib.c @@ -36,7 +36,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define DEFAULT_ZERO_START ((UINTN) ~0) =20 // -// All the supported IP4 maskes in host byte order. +// All the supported IP4 masks in host byte order. // GLOBAL_REMOVE_IF_UNREFERENCED IP4_ADDR gIp4AllMasks[IP4_MASK_NUM] =3D { 0x00000000, @@ -130,7 +130,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED VLAN_DEVICE_PATH mNetVlan= DevicePathTemplate =3D { to send the syslog packets. The caller isn't required to close the SNP after use because the SNP is opened by HandleProtocol. =20 - @return The point to SNP if one is properly openned. Otherwise NULL + @return The point to SNP if one is properly opened. Otherwise NULL =20 **/ EFI_SIMPLE_NETWORK_PROTOCOL * @@ -304,7 +304,7 @@ ON_EXIT: @param[in] File The file that contains the current log @param[in] Line The line of code in the File that contains the cur= rent log @param[in] Message The log message - @param[in] BufLen The lenght of the Buf + @param[in] BufLen The length of the Buf @param[out] Buf The buffer to put the packet data =20 @return The length of the syslog packet built, 0 represents no packet is= built. @@ -480,7 +480,7 @@ NetDebugASPrint ( Because it isn't open the SNP BY_DRIVER, apply caution when using it. =20 @param Level The severity level of the message. - @param Module The Moudle that generates the log. + @param Module The Module that generates the log. @param File The file that contains the log. @param Line The exact line that contains the log. @param Message The user message to log. @@ -518,7 +518,7 @@ NetDebugOutput ( } =20 // - // Allocate a maxium of 1024 bytes, the caller should ensure + // Allocate a maximum of 1024 bytes, the caller should ensure // that the message plus the ethernet/ip/udp header is shorter // than this // @@ -1129,7 +1129,7 @@ NetListInsertBefore ( If it has been removed, then restart the traversal from the head. If it hasn't been removed, then continue with the next node directly. This function will end the iterate and return the CallBack's last return= value if error happens, - or retrun EFI_SUCCESS if 2 complete passes are made with no changes in t= he number of children in the list. + or return EFI_SUCCESS if 2 complete passes are made with no changes in t= he number of children in the list. =20 @param[in] List The head of the list. @param[in] CallBack Pointer to the callback function to destr= oy one node in the list. @@ -1353,7 +1353,7 @@ NetMapGetCount ( Return one allocated item. =20 If the Recycled doubly linked list of the netmap is empty, it will try t= o allocate - a batch of items if there are enough resources and add corresponding nod= es to the begining + a batch of items if there are enough resources and add corresponding nod= es to the beginning of the Recycled doubly linked list of the netmap. Otherwise, it will dir= ectly remove the fist node entry of the Recycled doubly linked list and return the co= rresponding item. =20 @@ -3299,7 +3299,7 @@ NetLibGetSystemGuid ( String =3D (CHAR8 *) (Smbios.Raw + Smbios.Hdr->Length); =20 // - // Step 2: Skip over unformated string section. + // Step 2: Skip over unformatted string section. // do { // diff --git a/NetworkPkg/Library/DxeNetLib/NetBuffer.c b/NetworkPkg/Library/= DxeNetLib/NetBuffer.c index 2408e9a10456..a232802c9a21 100644 --- a/NetworkPkg/Library/DxeNetLib/NetBuffer.c +++ b/NetworkPkg/Library/DxeNetLib/NetBuffer.c @@ -602,7 +602,7 @@ NetbufGetFragment ( =20 if (HeadSpace !=3D 0) { // - // Allocate an extra block to accomdate the head space. + // Allocate an extra block to accommodate the head space. // BlockOpNum++; =20 @@ -791,7 +791,7 @@ NetbufFromExt ( =20 if (Len =3D=3D 0) { // - // Increament the index number to point to the next + // Increment the index number to point to the next // non-empty fragment. // Index++; diff --git a/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c b/NetworkPkg/Libr= ary/DxeTcpIoLib/DxeTcpIoLib.c index 341295d0b7af..6f87a0eada98 100644 --- a/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c +++ b/NetworkPkg/Library/DxeTcpIoLib/DxeTcpIoLib.c @@ -304,7 +304,7 @@ TcpIoCreateSocket ( } =20 // - // Create events for variuos asynchronous operations. + // Create events for various asynchronous operations. // Status =3D gBS->CreateEvent ( EVT_NOTIFY_SIGNAL, @@ -745,7 +745,7 @@ TcpIoReset ( @param[in] TcpIo The TcpIo wrapping the TCP socket. @param[in] Packet The packet to transmit. =20 - @retval EFI_SUCCESS The packet is trasmitted. + @retval EFI_SUCCESS The packet is transmitted. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. @retval EFI_UNSUPPORTED One or more of the control options are no= t supported in the implementation. @@ -807,7 +807,7 @@ TcpIoTransmit ( Status =3D EFI_DEVICE_ERROR; =20 // - // Trasnmit the packet. + // Transmit the packet. // if (TcpIo->TcpVersion =3D=3D TCP_VERSION_4) { TcpIo->TxToken.Tcp4Token.Packet.TxData =3D (EFI_TCP4_TRANSMIT_DATA *) = Data; @@ -862,14 +862,14 @@ ON_EXIT: =20 @param[in, out] TcpIo The TcpIo which wraps the socket to be dest= royed. @param[in] Packet The buffer to hold the data copy from the s= ocket rx buffer. - @param[in] AsyncMode Is this receive asyncronous or not. + @param[in] AsyncMode Is this receive asynchronous or not. @param[in] Timeout The time to wait for receiving the amount o= f data the Packet can hold. Set to NULL for infinite wait. =20 @retval EFI_SUCCESS The required amount of data is received f= rom the socket. @retval EFI_INVALID_PARAMETER One or more parameters are invalid. @retval EFI_DEVICE_ERROR An unexpected network or system error occ= urred. - @retval EFI_OUT_OF_RESOURCES Failed to allocate momery. + @retval EFI_OUT_OF_RESOURCES Failed to allocate memory. @retval EFI_TIMEOUT Failed to receive the required amount of = data in the specified time period. @retval Others Other errors as indicated. diff --git a/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c b/NetworkPkg/Libr= ary/DxeUdpIoLib/DxeUdpIoLib.c index 155cb3104972..0034a5694f92 100644 --- a/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c +++ b/NetworkPkg/Library/DxeUdpIoLib/DxeUdpIoLib.c @@ -147,7 +147,7 @@ UdpIoRecycleDgram ( /** The event handle for UDP receive request. =20 - It will build a NET_BUF from the recieved UDP data, then deliver it + It will build a NET_BUF from the received UDP data, then deliver it to the receiver. =20 @param[in] Context The UDP RX token. @@ -335,7 +335,7 @@ UdpIoOnDgramRcvd ( @param[in] UdpIo The UdpIo to receive packets from. @param[in] CallBack The function to call when receive fini= shed. @param[in] Context The opaque parameter to the CallBack. - @param[in] HeadLen The head length to reserver for the pa= cket. + @param[in] HeadLen The head length to reserve for the pac= ket. =20 @return The Wrapped request or NULL if failed to allocate resources or s= ome errors happened. =20 @@ -410,7 +410,7 @@ UdpIoCreateRxToken ( @param[in] UdpIo The UdpIo to send packet to. @param[in] Packet The user's packet. @param[in] EndPoint The local and remote access point. - @param[in] Gateway The overrided next hop. + @param[in] Gateway The overridden next hop. @param[in] CallBack The function to call when transmission= completed. @param[in] Context The opaque parameter to the call back. =20 @@ -590,7 +590,7 @@ UdpIoCreateTxToken ( @param[in] ImageHandle The image handle for the driver. @param[in] Configure The function to configure the created = UDP child. @param[in] UdpVersion The UDP protocol version, UDP4 or UDP6= . - @param[in] Context The opaque parameter for the Configure= funtion. + @param[in] Context The opaque parameter for the Configure= function. =20 @return Newly-created UDP_IO or NULL if failed. =20 @@ -755,7 +755,7 @@ FREE_MEM: =20 @param[in] UdpIo The UDP_IO to cancel packet. @param[in] IoStatus The IoStatus to return to the packet o= wners. - @param[in] ToCancel The select funtion to test whether to = cancel this + @param[in] ToCancel The select function to test whether to= cancel this packet or not. @param[in] Context The opaque parameter to the ToCancel. =20 --=20 2.21.0