]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Library/DxeNetLib/DxeNetLib.c
NetworkPkg/Library: Fix various typos
[mirror_edk2.git] / NetworkPkg / Library / DxeNetLib / DxeNetLib.c
index 4f8a1226dae7bdd9c988164cdef0b41fb2540fcd..2a555a7b90fab21f35a9ca5bcafac20d352f860a 100644 (file)
@@ -36,7 +36,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define DEFAULT_ZERO_START     ((UINTN) ~0)\r
 \r
 //\r
-// All the supported IP4 maskes in host byte order.\r
+// All the supported IP4 masks in host byte order.\r
 //\r
 GLOBAL_REMOVE_IF_UNREFERENCED IP4_ADDR  gIp4AllMasks[IP4_MASK_NUM] = {\r
   0x00000000,\r
@@ -130,7 +130,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED VLAN_DEVICE_PATH mNetVlanDevicePathTemplate = {
   to send the syslog packets. The caller isn't required to close\r
   the SNP after use because the SNP is opened by HandleProtocol.\r
 \r
-  @return The point to SNP if one is properly openned. Otherwise NULL\r
+  @return The point to SNP if one is properly opened. Otherwise NULL\r
 \r
 **/\r
 EFI_SIMPLE_NETWORK_PROTOCOL *\r
@@ -304,7 +304,7 @@ ON_EXIT:
   @param[in]  File      The file that contains the current log\r
   @param[in]  Line      The line of code in the File that contains the current log\r
   @param[in]  Message   The log message\r
-  @param[in]  BufLen    The lenght of the Buf\r
+  @param[in]  BufLen    The length of the Buf\r
   @param[out] Buf       The buffer to put the packet data\r
 \r
   @return The length of the syslog packet built, 0 represents no packet is built.\r
@@ -480,7 +480,7 @@ NetDebugASPrint (
   Because it isn't open the SNP BY_DRIVER, apply caution when using it.\r
 \r
   @param Level    The severity level of the message.\r
-  @param Module   The Moudle that generates the log.\r
+  @param Module   The Module that generates the log.\r
   @param File     The file that contains the log.\r
   @param Line     The exact line that contains the log.\r
   @param Message  The user message to log.\r
@@ -518,7 +518,7 @@ NetDebugOutput (
   }\r
 \r
   //\r
-  // Allocate a maxium of 1024 bytes, the caller should ensure\r
+  // Allocate a maximum of 1024 bytes, the caller should ensure\r
   // that the message plus the ethernet/ip/udp header is shorter\r
   // than this\r
   //\r
@@ -1129,7 +1129,7 @@ NetListInsertBefore (
   If it has been removed, then restart the traversal from the head.\r
   If it hasn't been removed, then continue with the next node directly.\r
   This function will end the iterate and return the CallBack's last return value if error happens,\r
-  or retrun EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list.\r
+  or return EFI_SUCCESS if 2 complete passes are made with no changes in the number of children in the list.\r
 \r
   @param[in]    List             The head of the list.\r
   @param[in]    CallBack         Pointer to the callback function to destroy one node in the list.\r
@@ -1353,7 +1353,7 @@ NetMapGetCount (
   Return one allocated item.\r
 \r
   If the Recycled doubly linked list of the netmap is empty, it will try to allocate\r
-  a batch of items if there are enough resources and add corresponding nodes to the begining\r
+  a batch of items if there are enough resources and add corresponding nodes to the beginning\r
   of the Recycled doubly linked list of the netmap. Otherwise, it will directly remove\r
   the fist node entry of the Recycled doubly linked list and return the corresponding item.\r
 \r
@@ -3299,7 +3299,7 @@ NetLibGetSystemGuid (
     String = (CHAR8 *) (Smbios.Raw + Smbios.Hdr->Length);\r
 \r
     //\r
-    // Step 2: Skip over unformated string section.\r
+    // Step 2: Skip over unformatted string section.\r
     //\r
     do {\r
       //\r