]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/Mtftp6Dxe: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:58 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in documentation, comments and strings.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-46-philmd@redhat.com>

NetworkPkg/Mtftp6Dxe/Mtftp6Driver.c
NetworkPkg/Mtftp6Dxe/Mtftp6Driver.h
NetworkPkg/Mtftp6Dxe/Mtftp6Impl.c
NetworkPkg/Mtftp6Dxe/Mtftp6Impl.h
NetworkPkg/Mtftp6Dxe/Mtftp6Option.c
NetworkPkg/Mtftp6Dxe/Mtftp6Option.h
NetworkPkg/Mtftp6Dxe/Mtftp6Rrq.c
NetworkPkg/Mtftp6Dxe/Mtftp6Support.c
NetworkPkg/Mtftp6Dxe/Mtftp6Support.h
NetworkPkg/Mtftp6Dxe/Mtftp6Wrq.c

index 18cdcddbe91793c1e38c72cdc076d72baee23893..a19a67a1ce7e4b80d172cc74ca9365d307f9523b 100644 (file)
@@ -538,7 +538,7 @@ Mtftp6DriverBindingStop (
                               then a new handle is created. If it is a pointer to an existing\r
                               UEFI handle, then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval Others                The child handle was not created.\r
 \r
@@ -637,7 +637,7 @@ ON_ERROR:
   @param[in]  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param[in]  ChildHandle Handle of the child to destroy.\r
 \r
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.\r
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
   @retval EFI_INVALID_PARAMETER Child handle is NULL.\r
   @retval Others                The child handle was not destroyed\r
index 30e6c8a3e1ab87ac1fea70aa70c6e5b09f90d29d..86e8c6a771518fe773ded3cd614c54c3863377d2 100644 (file)
@@ -108,7 +108,7 @@ Mtftp6DriverBindingStop (
                               then a new handle is created. If it is a pointer to an existing\r
                               UEFI handle, then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval Others                The child handle was not created.\r
 \r
@@ -130,7 +130,7 @@ Mtftp6ServiceBindingCreateChild (
   @param[in]  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param[in]  ChildHandle Handle of the child to destroy.\r
 \r
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.\r
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
   @retval EFI_INVALID_PARAMETER Child handle is NULL.\r
   @retval Others                The child handle was not destroyed\r
index 92c9d5cb392f6fd9a8b3713caac3cce2901e4658..067b1f53ba0612daf530c3db0383c3a6818c29de 100644 (file)
@@ -109,11 +109,11 @@ EfiMtftp6GetModeData (
                                  - This is NULL.\r
                                  - MtftpConfigData.StationIp is neither zero nor one\r
                                    of the configured IP addresses in the underlying IPv6 driver.\r
-                                 - MtftpCofigData.ServerIp is not a valid IPv6 unicast address.\r
+                                 - MtftpConfigData.ServerIp is not a valid IPv6 unicast address.\r
                                  Note: It does not match the UEFI 2.3 Specification.\r
   @retval  EFI_ACCESS_DENIED     - The configuration could not be changed at this time because there\r
                                    is some MTFTP background operation in progress.\r
-                                 - MtftpCofigData.LocalPort is already in use.\r
+                                 - MtftpConfigData.LocalPort is already in use.\r
                                  Note: It does not match the UEFI 2.3 Specification.\r
   @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
index 2c557b1928f633b9ed88e915515ed92d08168750..321fbc1d52029c13d3a10a58170a34d76f069a77 100644 (file)
@@ -179,11 +179,11 @@ EfiMtftp6GetModeData (
                                  - This is NULL.\r
                                  - MtftpConfigData.StationIp is neither zero nor one\r
                                    of the configured IP addresses in the underlying IPv6 driver.\r
-                                 - MtftpCofigData.ServerIp is not a valid IPv6 unicast address.\r
+                                 - MtftpConfigData.ServerIp is not a valid IPv6 unicast address.\r
                                  Note: It does not match the UEFI 2.3 Specification.\r
   @retval  EFI_ACCESS_DENIED     - The configuration could not be changed at this time because there\r
                                    is some MTFTP background operation in progress.\r
-                                 - MtftpCofigData.LocalPort is already in use.\r
+                                 - MtftpConfigData.LocalPort is already in use.\r
                                  Note: It does not match the UEFI 2.3 Specification.\r
   @retval  EFI_NO_MAPPING        The underlying IPv6 driver was responsible for choosing a source\r
                                  address for this instance, but no source address was available for use.\r
index 2a83af9878d527b04d17359b8b6c7f2e265dca9d..16e622c65a7ef5944006513b2b359a108693eaa9 100644 (file)
@@ -42,7 +42,7 @@ Mtftp6ParseMcastOption (
   CHAR8                     *TempStr;\r
 \r
   //\r
-  // The multicast option is formated like "addr,port,mc"\r
+  // The multicast option is formatted like "addr,port,mc"\r
   // The server can also omit the ip and port, use ",,1"\r
   //\r
   if (*Str == ',') {\r
@@ -135,7 +135,7 @@ Mtftp6ParseMcastOption (
 \r
 \r
 /**\r
-  Parse the MTFTP6 extesion options.\r
+  Parse the MTFTP6 extension options.\r
 \r
   @param[in]  Options       The pointer to the extension options list.\r
   @param[in]  Count         The num of the extension options.\r
index 6dab4b1e71f68350da504c384595d2db5ee2cd91..ad12a7e4d0e265f323260688eea56b26083b2aff 100644 (file)
@@ -66,7 +66,7 @@ Mtftp6ParseMcastOption (
 \r
 \r
 /**\r
-  Parse the MTFTP6 extesion options.\r
+  Parse the MTFTP6 extension options.\r
 \r
   @param[in]  Options       The pointer to the extension options list.\r
   @param[in]  Count         The num of the extension options.\r
index a830d432916cd2e29858bb9d22afcf9ae76d2b6a..4935933f23125339a648e9b2d952efd43871d1f4 100644 (file)
@@ -742,7 +742,7 @@ Mtftp6RrqInput (
       //\r
       // For the subsequent exchange of requests, reconfigure the udpio as\r
       // (serverip, serverport, localip, localport).\r
-      // Ususally, the client set serverport as 0 to receive and reset it\r
+      // Usually, the client set serverport as 0 to receive and reset it\r
       // once the first packet arrives to send ack.\r
       //\r
       Instance->ServerDataPort = UdpEpt->RemotePort;\r
@@ -851,7 +851,7 @@ Mtftp6RrqInput (
 \r
   default:\r
     //\r
-    // Drop and return eror if received error message.\r
+    // Drop and return error if received error message.\r
     //\r
     Status = EFI_TFTP_ERROR;\r
     break;\r
@@ -896,7 +896,7 @@ ON_EXIT:
 \r
 /**\r
   Start the Mtftp6 instance to download. It first initializes some\r
-  of the internal states, then builds and sends an RRQ reqeuest packet.\r
+  of the internal states, then builds and sends an RRQ request packet.\r
   Finally, it starts receive for the downloading.\r
 \r
   @param[in]  Instance              The pointer to the Mtftp6 instance.\r
@@ -917,7 +917,7 @@ Mtftp6RrqStart (
   //\r
   // The valid block number range are [1, 0xffff]. For example:\r
   // the client sends an RRQ request to the server, the server\r
-  // transfers the DATA1 block. If option negoitation is ongoing,\r
+  // transfers the DATA1 block. If option negotiation is ongoing,\r
   // the server will send back an OACK, then client will send ACK0.\r
   //\r
   Status = Mtftp6InitBlockRange (&Instance->BlkList, 1, 0xffff);\r
index 5b10da52c38919deef7a704fa53d0ef805789443..1157a6065cac7f3c9a31316702bfb84740b846ca 100644 (file)
@@ -46,7 +46,7 @@ Mtftp6AllocateRange (
   Initialize the block range for either RRQ or WRQ. RRQ and WRQ have\r
   different requirements for Start and End. For example, during startup,\r
   WRQ initializes its whole valid block range to [0, 0xffff]. This\r
-  is bacause the server will send an ACK0 to inform the user to start the\r
+  is because the server will send an ACK0 to inform the user to start the\r
   upload. When the client receives an ACK0, it will remove 0 from the range,\r
   get the next block number, which is 1, then upload the BLOCK1. For RRQ\r
   without option negotiation, the server will directly send the BLOCK1\r
@@ -197,7 +197,7 @@ Mtftp6RemoveBlockNum (
     // 3. (Start < Num) && (End >= Num):\r
     //    if End == Num, only need to decrease the End by one because\r
     //    we have (Start < Num) && (Num == End), so (Start <= End - 1).\r
-    //    if (End > Num), the hold is splited into two holes, with\r
+    //    if (End > Num), the hold is split into two holes, with\r
     //    [Start, Num - 1] and [Num + 1, End].\r
     //\r
     if (Range->Start > Num) {\r
@@ -991,7 +991,7 @@ Mtftp6OperationClean (
   write file, and read directory.\r
 \r
   @param[in]  This                   The MTFTP session.\r
-  @param[in]  Token                  The token than encapsues the user's request.\r
+  @param[in]  Token                  The token than encapsules the user's request.\r
   @param[in]  OpCode                 The operation to perform.\r
 \r
   @retval EFI_INVALID_PARAMETER  Some of the parameters are invalid.\r
@@ -1227,7 +1227,7 @@ Mtftp6OnTimerTick (
     }\r
 \r
     //\r
-    // Retransmit the packet if haven't reach the maxmium retry count,\r
+    // Retransmit the packet if haven't reach the maximum retry count,\r
     // otherwise exit the transfer.\r
     //\r
     if (Instance->CurRetry < Instance->MaxRetry) {\r
index 5712601fc388e36afa44f5a3acd1771e17c48339..2b8a58f9de50d8bb7e121fe0f71982a0faeda358 100644 (file)
@@ -334,7 +334,7 @@ Mtftp6RrqInput (
 \r
 /**\r
   Start the Mtftp6 instance to download. It first initializes some\r
-  of the internal states then builds and sends an RRQ reqeuest packet.\r
+  of the internal states then builds and sends an RRQ request packet.\r
   Finally, it starts receive for the downloading.\r
 \r
   @param[in]  Instance              The pointer to the Mtftp6 instance.\r
index ce3315cc2c26b3ace023c0b2fb58bfe615dff7ce..1ccdc6e32b62d03c519592ddc64154d456192cb4 100644 (file)
@@ -174,7 +174,7 @@ Mtftp6WrqHandleAck (
 \r
   if (Expected < 0) {\r
     //\r
-    // The block range is empty. It may either because the the last\r
+    // The block range is empty. It may either because the last\r
     // block has been ACKed, or the sequence number just looped back,\r
     // that is, there is more than 0xffff blocks.\r
     //\r