From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web09.2026.1578044444073901566 for ; Fri, 03 Jan 2020 01:40:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K4Wow8eX; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578044443; 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=1xumMBJSjQ/bjrRRRQorbwEw3upaQH6wW29bRESPPls=; b=K4Wow8eX9YWLNugFM22PXzpladUFYuPx+z4IFP94dTRO1xNN42XmfLhvYfGW4rUd1Qu9KN F07gBIc3kgD0XcuSLCA+Fno/zApPQZ0ZSMagYm1nP1VLyCLoIr+92mhJZrZ989lcBO7m0H xQxbnuHKhfFwTK+DO29c3STuIRcvEjU= 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-211-y3FgKfUYOc-9JYTu2EPbXw-1; Fri, 03 Jan 2020 04:40:41 -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 6B49E100550E; Fri, 3 Jan 2020 09:40:40 +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 8E0D360BF7; Fri, 3 Jan 2020 09:40:38 +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 38/78] NetworkPkg/HttpDxe: Fix various typos Date: Fri, 3 Jan 2020 10:07:32 +0100 Message-Id: <20200103090812.10592-39-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: y3FgKfUYOc-9JYTu2EPbXw-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/HttpDxe/HttpDriver.h | 8 ++++---- NetworkPkg/HttpDxe/HttpProto.h | 16 ++++++++-------- NetworkPkg/HttpDxe/HttpsSupport.h | 2 +- NetworkPkg/HttpDxe/HttpDriver.c | 12 ++++++------ NetworkPkg/HttpDxe/HttpImpl.c | 10 +++++----- NetworkPkg/HttpDxe/HttpProto.c | 22 +++++++++++----------- NetworkPkg/HttpDxe/HttpsSupport.c | 2 +- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/NetworkPkg/HttpDxe/HttpDriver.h b/NetworkPkg/HttpDxe/HttpDrive= r.h index bd6f658f3c24..5fe8c5b5e9b9 100644 --- a/NetworkPkg/HttpDxe/HttpDriver.h +++ b/NetworkPkg/HttpDxe/HttpDriver.h @@ -172,7 +172,7 @@ HttpDxeIp4DriverBindingSupported ( @retval EFI_SUCCESS The device was started. @retval EFI_DEVICE_ERROR The device could not be started due to = a device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due = to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. =20 **/ EFI_STATUS @@ -301,7 +301,7 @@ HttpDxeIp6DriverBindingSupported ( @retval EFI_ALREADY_STARTED This device is already running on Contr= ollerHandle. @retval EFI_DEVICE_ERROR The device could not be started due to = a device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due = to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. =20 **/ EFI_STATUS @@ -359,7 +359,7 @@ HttpDxeIp6DriverBindingStop ( then a new handle is created. If it is a pointer to = an existing UEFI handle, then the protocol is added to the existing UEFI hand= le. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER This is NULL, or ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child. @@ -383,7 +383,7 @@ HttpServiceBindingCreateChild ( @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance= . @param ChildHandle Handle of the child to destroy =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle. + @retval EFI_SUCCESS The protocol was removed from ChildHandle. @retval EFI_UNSUPPORTED ChildHandle does not support the protocol = that is being removed. @retval EFI_INVALID_PARAMETER Child handle is NULL. @retval other The child handle was not destroyed diff --git a/NetworkPkg/HttpDxe/HttpProto.h b/NetworkPkg/HttpDxe/HttpProto.= h index 34308e016d3e..00ba26aca49a 100644 --- a/NetworkPkg/HttpDxe/HttpProto.h +++ b/NetworkPkg/HttpDxe/HttpProto.h @@ -308,7 +308,7 @@ HttpCloseTcpRxEvent ( ); =20 /** - Intiialize the HTTP_PROTOCOL structure to the unconfigured state. + Initialize the HTTP_PROTOCOL structure to the unconfigured state. =20 @param[in, out] HttpInstance Pointer to HTTP_PROTOCOL structure= . @param[in] IpVersion Indicate us TCP4 protocol or TCP6 = protocol. @@ -453,7 +453,7 @@ HttpTransmitTcp ( @param[in] Map The container of either user's transmit o= r receive token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_ACCESS_DENIED The token or event has already been enque= ued in IP @retval EFI_SUCCESS The current item isn't the same token/eve= nt as the @@ -473,7 +473,7 @@ HttpTokenExist ( =20 @param[in] Map The container of TxToken. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_NOT_READY The HTTP message is still queued in the l= ist. @retval EFI_SUCCESS The HTTP message has been sent out. @@ -508,11 +508,11 @@ HttpInitSession ( ); =20 /** - Transmit the HTTP or HTTPS mssage by processing the associated HTTP toke= n. + Transmit the HTTP or HTTPS message by processing the associated HTTP tok= en. =20 @param[in] Map The container of TxToken or Tx6Token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_OUT_OF_RESOURCES Failed to allocate resources. @retval EFI_SUCCESS The HTTP message is queued into TCP trans= mit @@ -532,7 +532,7 @@ HttpTcpTransmit ( =20 @param[in] Map The container of Rx4Token or Rx6Token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_SUCCESS The HTTP response is queued into TCP rece= ive queue. @@ -552,7 +552,7 @@ HttpTcpReceive ( =20 @param[in] HttpInstance The HTTP instance private data. @param[in, out] SizeofHeaders The HTTP header length. - @param[in, out] BufferSize The size of buffer to cacahe the header= message. + @param[in, out] BufferSize The size of buffer to cache the header = message. @param[in] Timeout The time to wait for receiving the head= er packet. =20 @retval EFI_SUCCESS The HTTP header is received. @@ -600,7 +600,7 @@ HttpTcpTokenCleanup ( @param[in] Wrap Pointer to HTTP token's wrap data. =20 @retval EFI_SUCCESS Allocation succeeded. - @retval EFI_OUT_OF_RESOURCES Failed to complete the opration due to l= ack of resources. + @retval EFI_OUT_OF_RESOURCES Failed to complete the operation due to = lack of resources. @retval EFI_NOT_READY Can't find a corresponding TxToken. =20 **/ diff --git a/NetworkPkg/HttpDxe/HttpsSupport.h b/NetworkPkg/HttpDxe/HttpsSu= pport.h index 0e16968cd680..6851ceea75a5 100644 --- a/NetworkPkg/HttpDxe/HttpsSupport.h +++ b/NetworkPkg/HttpDxe/HttpsSupport.h @@ -149,7 +149,7 @@ TlsCommonReceive ( ); =20 /** - Receive one TLS PDU. An TLS PDU contains an TLS record header and it's + Receive one TLS PDU. An TLS PDU contains an TLS record header and its corresponding record data. These two parts will be put into two blocks o= f buffers in the net buffer. =20 diff --git a/NetworkPkg/HttpDxe/HttpDriver.c b/NetworkPkg/HttpDxe/HttpDrive= r.c index 7c64d4215119..a9f5c0949ffe 100644 --- a/NetworkPkg/HttpDxe/HttpDriver.c +++ b/NetworkPkg/HttpDxe/HttpDriver.c @@ -78,7 +78,7 @@ HttpCreateService ( @param[in] HttpService The HTTP private instance. @param[in] UsingIpv6 Indicate use TCP4 protocol or TCP6 protoc= ol. if TRUE, use Tcp6 protocol. - if FALSE, use Tcp4 protocl. + if FALSE, use Tcp4 protocol. **/ VOID HttpCleanService ( @@ -152,7 +152,7 @@ HttpUtilitiesInstalledCallback ( ); =20 // - // Close the event if Http utilities protocol is loacted. + // Close the event if Http utilities protocol is located. // if (mHttpUtilities !=3D NULL && Event !=3D NULL) { gBS->CloseEvent (Event); @@ -668,7 +668,7 @@ HttpDxeIp4DriverBindingSupported ( @retval EFI_ALREADY_STARTED This device is already running on Contr= ollerHandle. @retval EFI_DEVICE_ERROR The device could not be started due to = a device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due = to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. =20 **/ EFI_STATUS @@ -823,7 +823,7 @@ HttpDxeIp6DriverBindingSupported ( @retval EFI_ALREADY_STARTED This device is already running on Contr= ollerHandle. @retval EFI_DEVICE_ERROR The device could not be started due to = a device error.Currently not implemented. @retval EFI_OUT_OF_RESOURCES The request could not be completed due = to a lack of resources. - @retval Others The driver failded to start the device. + @retval Others The driver failed to start the device. =20 **/ EFI_STATUS @@ -897,7 +897,7 @@ HttpDxeIp6DriverBindingStop ( then a new handle is created. If it is a pointer to = an existing UEFI handle, then the protocol is added to the existing UEFI hand= le. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER This is NULL, or ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child. @@ -981,7 +981,7 @@ ON_ERROR: @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance= . @param ChildHandle Handle of the child to destroy =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle. + @retval EFI_SUCCESS The protocol was removed from ChildHandle. @retval EFI_UNSUPPORTED ChildHandle does not support the protocol = that is being removed. @retval EFI_INVALID_PARAMETER Child handle is NULL. @retval other The child handle was not destroyed diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c index 6b877314bd57..aa77696f0d0d 100644 --- a/NetworkPkg/HttpDxe/HttpImpl.c +++ b/NetworkPkg/HttpDxe/HttpImpl.c @@ -188,7 +188,7 @@ EfiHttpConfigure ( =20 } else { // - // Reset all the resources related to HttpInsance. + // Reset all the resources related to HttpInstance. // HttpCleanProtocol (HttpInstance); HttpInstance->State =3D HTTP_STATE_UNCONFIGED; @@ -756,7 +756,7 @@ HttpCancelTokens ( if (!HttpInstance->LocalAddressIsIPv6) { if (Wrap->TcpWrap.Rx4Token.CompletionToken.Event !=3D NULL) { // - // Cancle the Token before close its Event. + // Cancel the Token before close its Event. // HttpInstance->Tcp4->Cancel (HttpInstance->Tcp4, &Wrap->TcpWrap.Rx4To= ken.CompletionToken); =20 @@ -768,7 +768,7 @@ HttpCancelTokens ( } else { if (Wrap->TcpWrap.Rx6Token.CompletionToken.Event !=3D NULL) { // - // Cancle the Token before close its Event. + // Cancel the Token before close its Event. // HttpInstance->Tcp6->Cancel (HttpInstance->Tcp6, &Wrap->TcpWrap.Rx6To= ken.CompletionToken); =20 @@ -956,7 +956,7 @@ HttpBodyParserCallback ( @param[in] Wrap Pointer to HTTP token's wrap data. =20 @retval EFI_SUCCESS Allocation succeeded. - @retval EFI_OUT_OF_RESOURCES Failed to complete the opration due to l= ack of resources. + @retval EFI_OUT_OF_RESOURCES Failed to complete the operation due to = lack of resources. @retval EFI_NOT_READY Can't find a corresponding Tx4Token/Tx6T= oken or the EFI_HTTP_UTILITIES_PROTOCOL is not a= vailable. =20 @@ -1284,7 +1284,7 @@ HttpResponseWorker ( } } // - // Return since we aready received required data. + // Return since we already received required data. // Status =3D EFI_SUCCESS; goto Exit; diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.= c index bacfbc995847..3c7c6ff9f0ce 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -301,7 +301,7 @@ HttpCreateTcpConnCloseEvent ( =20 if (!HttpInstance->LocalAddressIsIPv6) { // - // Create events for variuos asynchronous operations. + // Create events for various asynchronous operations. // Status =3D gBS->CreateEvent ( EVT_NOTIFY_SIGNAL, @@ -330,7 +330,7 @@ HttpCreateTcpConnCloseEvent ( =20 } else { // - // Create events for variuos asynchronous operations. + // Create events for various asynchronous operations. // Status =3D gBS->CreateEvent ( EVT_NOTIFY_SIGNAL, @@ -618,7 +618,7 @@ HttpCloseTcpRxEvent ( } =20 /** - Intiialize the HTTP_PROTOCOL structure to the unconfigured state. + Initialize the HTTP_PROTOCOL structure to the unconfigured state. =20 @param[in, out] HttpInstance Pointer to HTTP_PROTOCOL structure= . @param[in] IpVersion Indicate us TCP4 protocol or TCP6 = protocol. @@ -1636,7 +1636,7 @@ ON_ERROR: @param[in] Map The container of either user's transmit o= r receive token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_ACCESS_DENIED The token or event has already been enque= ued in IP @retval EFI_SUCCESS The current item isn't the same token/eve= nt as the @@ -1669,7 +1669,7 @@ HttpTokenExist ( =20 @param[in] Map The container of Tx4Token or Tx6Token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_NOT_READY The HTTP message is still queued in the l= ist. @retval EFI_SUCCESS The HTTP message has been sent out. @@ -1695,11 +1695,11 @@ HttpTcpNotReady ( } =20 /** - Transmit the HTTP or HTTPS mssage by processing the associated HTTP toke= n. + Transmit the HTTP or HTTPS message by processing the associated HTTP tok= en. =20 @param[in] Map The container of Tx4Token or Tx6Token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_OUT_OF_RESOURCES Failed to allocate resources. @retval EFI_SUCCESS The HTTP message is queued into TCP trans= mit @@ -1774,7 +1774,7 @@ HttpTcpTransmit ( =20 @param[in] Map The container of Rx4Token or Rx6Token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_SUCCESS The HTTP response is queued into TCP rece= ive queue. @@ -1800,7 +1800,7 @@ HttpTcpReceive ( =20 @param[in] HttpInstance The HTTP instance private data. @param[in, out] SizeofHeaders The HTTP header length. - @param[in, out] BufferSize The size of buffer to cacahe the heade= r message. + @param[in, out] BufferSize The size of buffer to cache the header= message. @param[in] Timeout The time to wait for receiving the hea= der packet. =20 @retval EFI_SUCCESS The HTTP header is received. @@ -1880,7 +1880,7 @@ HttpTcpReceiveHeader ( =20 if (!HttpInstance->IsRxDone) { // - // Cancle the Token before close its Event. + // Cancel the Token before close its Event. // Tcp4->Cancel (HttpInstance->Tcp4, &Rx4Token->CompletionToken); gBS->CloseEvent (Rx4Token->CompletionToken.Event); @@ -1980,7 +1980,7 @@ HttpTcpReceiveHeader ( =20 if (!HttpInstance->IsRxDone) { // - // Cancle the Token before close its Event. + // Cancel the Token before close its Event. // Tcp6->Cancel (HttpInstance->Tcp6, &Rx6Token->CompletionToken); gBS->CloseEvent (Rx6Token->CompletionToken.Event); diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c b/NetworkPkg/HttpDxe/HttpsSu= pport.c index 5dfb13bd6021..7e0bf85c3c42 100644 --- a/NetworkPkg/HttpDxe/HttpsSupport.c +++ b/NetworkPkg/HttpDxe/HttpsSupport.c @@ -971,7 +971,7 @@ ON_EXIT: } =20 /** - Receive one TLS PDU. An TLS PDU contains an TLS record header and it's + Receive one TLS PDU. An TLS PDU contains an TLS record header and its corresponding record data. These two parts will be put into two blocks o= f buffers in the net buffer. =20 --=20 2.21.0