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.web09.2034.1578044461154086199 for ; Fri, 03 Jan 2020 01:41:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I7wEQTRF; 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=1578044460; 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=WwiCKXurWkD+Uv0S+5cHV9XI4jnfNlDxwQ8r9MNohOE=; b=I7wEQTRFXa3JwXGkmjeCGeaSTur0fXKX98ZwZ6UaWXJ7GVRsGrZ/kmTI8jwvjfEsL6SUzl W6gmjnEQdpxIDktDV69PJoExTkFxi9PXK/KIBidTmLfRCP+WEvoqmwQBJXWnV5XBKE3xg1 4vvenoitxu5bHnH3uXBgDhRLGGVPfvE= 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-426-rvLCmNNAOM-3gZRSSdV5LA-1; Fri, 03 Jan 2020 04:40:58 -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 B6BB9107ACC7; Fri, 3 Jan 2020 09:40:57 +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 3B4CA60BF7; Fri, 3 Jan 2020 09:40:55 +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 45/78] NetworkPkg/Mtftp6Dxe: Fix various typos Date: Fri, 3 Jan 2020 10:07:39 +0100 Message-Id: <20200103090812.10592-46-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: rvLCmNNAOM-3gZRSSdV5LA-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 documentation, comments and strings. 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/Mtftp6Dxe/Mtftp6Driver.h | 4 ++-- NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h | 4 ++-- NetworkPkg/Mtftp6Dxe/Mtftp6Option.h | 2 +- NetworkPkg/Mtftp6Dxe/Mtftp6Support.h | 2 +- NetworkPkg/Mtftp6Dxe/Mtftp6Driver.c | 4 ++-- NetworkPkg/Mtftp6Dxe/Mtftp6Impl.c | 4 ++-- NetworkPkg/Mtftp6Dxe/Mtftp6Option.c | 4 ++-- NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c | 8 ++++---- NetworkPkg/Mtftp6Dxe/Mtftp6Support.c | 8 ++++---- NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.h b/NetworkPkg/Mtftp6Dxe/Mtf= tp6Driver.h index 30e6c8a3e1ab..86e8c6a77151 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.h +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.h @@ -108,7 +108,7 @@ Mtftp6DriverBindingStop ( then a new handle is created. If it is a poi= nter to an existing UEFI handle, then the protocol is added to t= he existing UEFI handle. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval Others The child handle was not created. =20 @@ -130,7 +130,7 @@ Mtftp6ServiceBindingCreateChild ( @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL inst= ance. @param[in] 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 Others The child handle was not destroyed diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h b/NetworkPkg/Mtftp6Dxe/Mtftp= 6Impl.h index 2c557b1928f6..321fbc1d5202 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h @@ -179,11 +179,11 @@ EfiMtftp6GetModeData ( - This is NULL. - MtftpConfigData.StationIp is neither ze= ro nor one of the configured IP addresses in the u= nderlying IPv6 driver. - - MtftpCofigData.ServerIp is not a valid = IPv6 unicast address. + - MtftpConfigData.ServerIp is not a valid= IPv6 unicast address. Note: It does not match the UEFI 2.3 Spec= ification. @retval EFI_ACCESS_DENIED - The configuration could not be changed = at this time because there is some MTFTP background operation in p= rogress. - - MtftpCofigData.LocalPort is already in = use. + - MtftpConfigData.LocalPort is already in= use. Note: It does not match the UEFI 2.3 Spec= ification. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsibl= e for choosing a source address for this instance, but no source = address was available for use. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h b/NetworkPkg/Mtftp6Dxe/Mtf= tp6Option.h index 6dab4b1e71f6..ad12a7e4d0e2 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Option.h @@ -66,7 +66,7 @@ Mtftp6ParseMcastOption ( =20 =20 /** - Parse the MTFTP6 extesion options. + Parse the MTFTP6 extension options. =20 @param[in] Options The pointer to the extension options list. @param[in] Count The num of the extension options. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Support.h b/NetworkPkg/Mtftp6Dxe/Mt= ftp6Support.h index 5712601fc388..2b8a58f9de50 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Support.h +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Support.h @@ -334,7 +334,7 @@ Mtftp6RrqInput ( =20 /** Start the Mtftp6 instance to download. It first initializes some - of the internal states then builds and sends an RRQ reqeuest packet. + of the internal states then builds and sends an RRQ request packet. Finally, it starts receive for the downloading. =20 @param[in] Instance The pointer to the Mtftp6 instance. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.c b/NetworkPkg/Mtftp6Dxe/Mtf= tp6Driver.c index 18cdcddbe917..a19a67a1ce7e 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Driver.c @@ -538,7 +538,7 @@ Mtftp6DriverBindingStop ( then a new handle is created. If it is a poi= nter to an existing UEFI handle, then the protocol is added to t= he existing UEFI handle. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval Others The child handle was not created. =20 @@ -637,7 +637,7 @@ ON_ERROR: @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL inst= ance. @param[in] 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 Others The child handle was not destroyed diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.c b/NetworkPkg/Mtftp6Dxe/Mtftp= 6Impl.c index 92c9d5cb392f..067b1f53ba06 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Impl.c @@ -109,11 +109,11 @@ EfiMtftp6GetModeData ( - This is NULL. - MtftpConfigData.StationIp is neither ze= ro nor one of the configured IP addresses in the u= nderlying IPv6 driver. - - MtftpCofigData.ServerIp is not a valid = IPv6 unicast address. + - MtftpConfigData.ServerIp is not a valid= IPv6 unicast address. Note: It does not match the UEFI 2.3 Spec= ification. @retval EFI_ACCESS_DENIED - The configuration could not be changed = at this time because there is some MTFTP background operation in p= rogress. - - MtftpCofigData.LocalPort is already in = use. + - MtftpConfigData.LocalPort is already in= use. Note: It does not match the UEFI 2.3 Spec= ification. @retval EFI_NO_MAPPING The underlying IPv6 driver was responsibl= e for choosing a source address for this instance, but no source = address was available for use. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.c b/NetworkPkg/Mtftp6Dxe/Mtf= tp6Option.c index 2a83af9878d5..16e622c65a7e 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Option.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Option.c @@ -42,7 +42,7 @@ Mtftp6ParseMcastOption ( CHAR8 *TempStr; =20 // - // The multicast option is formated like "addr,port,mc" + // The multicast option is formatted like "addr,port,mc" // The server can also omit the ip and port, use ",,1" // if (*Str =3D=3D ',') { @@ -135,7 +135,7 @@ Mtftp6ParseMcastOption ( =20 =20 /** - Parse the MTFTP6 extesion options. + Parse the MTFTP6 extension options. =20 @param[in] Options The pointer to the extension options list. @param[in] Count The num of the extension options. diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6= Rrq.c index a830d432916c..4935933f2312 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c @@ -742,7 +742,7 @@ Mtftp6RrqInput ( // // For the subsequent exchange of requests, reconfigure the udpio as // (serverip, serverport, localip, localport). - // Ususally, the client set serverport as 0 to receive and reset it + // Usually, the client set serverport as 0 to receive and reset it // once the first packet arrives to send ack. // Instance->ServerDataPort =3D UdpEpt->RemotePort; @@ -851,7 +851,7 @@ Mtftp6RrqInput ( =20 default: // - // Drop and return eror if received error message. + // Drop and return error if received error message. // Status =3D EFI_TFTP_ERROR; break; @@ -896,7 +896,7 @@ ON_EXIT: =20 /** Start the Mtftp6 instance to download. It first initializes some - of the internal states, then builds and sends an RRQ reqeuest packet. + of the internal states, then builds and sends an RRQ request packet. Finally, it starts receive for the downloading. =20 @param[in] Instance The pointer to the Mtftp6 instance. @@ -917,7 +917,7 @@ Mtftp6RrqStart ( // // The valid block number range are [1, 0xffff]. For example: // the client sends an RRQ request to the server, the server - // transfers the DATA1 block. If option negoitation is ongoing, + // transfers the DATA1 block. If option negotiation is ongoing, // the server will send back an OACK, then client will send ACK0. // Status =3D Mtftp6InitBlockRange (&Instance->BlkList, 1, 0xffff); diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c b/NetworkPkg/Mtftp6Dxe/Mt= ftp6Support.c index 5b10da52c389..1157a6065cac 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Support.c @@ -46,7 +46,7 @@ Mtftp6AllocateRange ( Initialize the block range for either RRQ or WRQ. RRQ and WRQ have different requirements for Start and End. For example, during startup, WRQ initializes its whole valid block range to [0, 0xffff]. This - is bacause the server will send an ACK0 to inform the user to start the + is because the server will send an ACK0 to inform the user to start the upload. When the client receives an ACK0, it will remove 0 from the rang= e, get the next block number, which is 1, then upload the BLOCK1. For RRQ without option negotiation, the server will directly send the BLOCK1 @@ -197,7 +197,7 @@ Mtftp6RemoveBlockNum ( // 3. (Start < Num) && (End >=3D Num): // if End =3D=3D Num, only need to decrease the End by one because // we have (Start < Num) && (Num =3D=3D End), so (Start <=3D End - = 1). - // if (End > Num), the hold is splited into two holes, with + // if (End > Num), the hold is split into two holes, with // [Start, Num - 1] and [Num + 1, End]. // if (Range->Start > Num) { @@ -991,7 +991,7 @@ Mtftp6OperationClean ( write file, and read directory. =20 @param[in] This The MTFTP session. - @param[in] Token The token than encapsues the user's r= equest. + @param[in] Token The token than encapsules the user's = request. @param[in] OpCode The operation to perform. =20 @retval EFI_INVALID_PARAMETER Some of the parameters are invalid. @@ -1227,7 +1227,7 @@ Mtftp6OnTimerTick ( } =20 // - // Retransmit the packet if haven't reach the maxmium retry count, + // Retransmit the packet if haven't reach the maximum retry count, // otherwise exit the transfer. // if (Instance->CurRetry < Instance->MaxRetry) { diff --git a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c b/NetworkPkg/Mtftp6Dxe/Mtftp6= Wrq.c index ce3315cc2c26..1ccdc6e32b62 100644 --- a/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c +++ b/NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c @@ -174,7 +174,7 @@ Mtftp6WrqHandleAck ( =20 if (Expected < 0) { // - // The block range is empty. It may either because the the last + // The block range is empty. It may either because the last // block has been ACKed, or the sequence number just looped back, // that is, there is more than 0xffff blocks. // --=20 2.21.0