]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix typos in comments and variables
authorGary Lin <glin@suse.com>
Wed, 19 Oct 2016 07:01:35 +0000 (15:01 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Tue, 15 Nov 2016 03:05:34 +0000 (11:05 +0800)
- funciton -> function
- paramter -> parameter
- supresses -> suppresses
- Seperator -> Separator
- permenant -> permanent

Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
ShellPkg/Include/Library/ShellCEntryLib.h
ShellPkg/Include/Library/ShellCommandLib.h
ShellPkg/Include/Protocol/EfiShellEnvironment2.h
ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c

index dfbb16f9c346194d67e0f1e3facc4a29d9cbfa9d..e4983f840c12750241cbed3148168595ca4550a6 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Provides application point extension for "C" style main funciton.\r
+  Provides application point extension for "C" style main function.\r
 \r
   Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
index e9a2c0365da4b07acc804494898507f42f01c7f7..c11d81d50644f0d6a22f8a61193b000f10d4ed60 100644 (file)
@@ -2,7 +2,7 @@
   Provides interface to shell internal functions for shell commands.\r
 \r
   This library is for use ONLY by shell commands linked into the shell application.\r
-  This library will not funciton if it is used for UEFI Shell 2.0 Applications.\r
+  This library will not function if it is used for UEFI Shell 2.0 Applications.\r
 \r
   Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
index 1aa1b7e328b38749a45acfa09e18a24424d582ea..ac6c6a0114432a1e78e3a5c04a15317dca424587 100644 (file)
@@ -124,7 +124,7 @@ GUID for the shell environment2 extension (main GUID above).
   @param[in] ParentImageHandle  Handle of the image executing this operation.\r
   @param[in] CommandLine        The string command line to execute.\r
   @param[in] DebugOutput        TRUE indicates that errors should be printed directly.\r
-                                FALSE supresses error messages.\r
+                                FALSE suppresses error messages.\r
 \r
   @retval EFI_SUCCESS           The command line executed and completed.\r
   @retval EFI_ABORTED           The operation aborted.\r
index 7fcdedbb05c9da979f7ddd8b18bbc8ed2a006dfb..61b3ec97e2be373f2b2d9e8d520ceda7214153a8 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Provides application point extension for "C" style main funciton\r
+  Provides application point extension for "C" style main function\r
 \r
   Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
index 00a4c10edc24b0cc0d6715b74e3bf8381e5b18cd..e07304cd7fe86b19c9d0d45702f4cd1820209711 100644 (file)
@@ -130,7 +130,7 @@ IsDriverProt (
 \r
   @param[in] TheHandle        The handles to show info on.\r
   @param[in] Language         Language string per UEFI specification.\r
-  @param[in] Seperator        Separator string between information blocks.\r
+  @param[in] Separator        Separator string between information blocks.\r
   @param[in] Verbose          TRUE for extra info, FALSE otherwise.\r
   @param[in] ExtraInfo        TRUE for extra info, FALSE otherwise.\r
 \r
@@ -141,7 +141,7 @@ CHAR16*
 GetProtocolInfoString(\r
   IN CONST EFI_HANDLE TheHandle,\r
   IN CONST CHAR8      *Language,\r
-  IN CONST CHAR16     *Seperator,\r
+  IN CONST CHAR16     *Separator,\r
   IN CONST BOOLEAN    Verbose,\r
   IN CONST BOOLEAN    ExtraInfo\r
   )\r
@@ -169,7 +169,7 @@ GetProtocolInfoString(
       if (Temp != NULL) {\r
         ASSERT((RetVal == NULL && Size == 0) || (RetVal != NULL));\r
         if (Size != 0) {\r
-          StrnCatGrow(&RetVal, &Size, Seperator, 0);\r
+          StrnCatGrow(&RetVal, &Size, Separator, 0);\r
         }\r
         StrnCatGrow(&RetVal, &Size, L"%H", 0);\r
         StrnCatGrow(&RetVal, &Size, Temp, 0);\r
@@ -185,7 +185,7 @@ GetProtocolInfoString(
             StrnCatGrow(&RetVal, &Size, Temp, 0);\r
             StrnCatGrow(&RetVal, &Size, L")\r\n", 0);\r
           } else {\r
-            StrnCatGrow(&RetVal, &Size, Seperator, 0);\r
+            StrnCatGrow(&RetVal, &Size, Separator, 0);\r
             StrnCatGrow(&RetVal, &Size, Temp, 0);\r
           }\r
           FreePool(Temp);\r
@@ -201,7 +201,7 @@ GetProtocolInfoString(
   }\r
 \r
   ASSERT((RetVal == NULL && Size == 0) || (RetVal != NULL));\r
-  StrnCatGrow(&RetVal, &Size, Seperator, 0);\r
+  StrnCatGrow(&RetVal, &Size, Separator, 0);\r
   return (RetVal);\r
 }\r
 \r
index 1491ee9d0672190ae6784655ba1d48ef0c3f3638..7948e53cfc469ae1c54915436a25d4981956110e 100644 (file)
@@ -99,7 +99,7 @@ ShellLevel2CommandsLibConstructor (
   ShellCommandRegisterCommandName(L"vol",      ShellCommandRunVol     , ShellCommandGetManFileNameLevel2, 2, L"", TRUE, gShellLevel2HiiHandle, STRING_TOKEN(STR_GET_HELP_VOL)    );\r
 \r
   //\r
-  // support for permenant (built in) aliases\r
+  // support for permanent (built in) aliases\r
   //\r
   ShellCommandRegisterAlias(L"rm", L"del");\r
   ShellCommandRegisterAlias(L"ls", L"dir");\r
index b7d08d51e62ce9b43a515fd3745fedd1756a4dbb..ca5c22a6188cf0e7d0f1a70af47c0b1c8af77dd3 100644 (file)
@@ -1599,7 +1599,7 @@ ShellCommandRunPing (
   }\r
 \r
   //\r
-  // Parse the paramter of count number.\r
+  // Parse the parameter of count number.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-n");\r
   if (ValueStr != NULL) {\r
@@ -1617,7 +1617,7 @@ ShellCommandRunPing (
     SendNumber = DEFAULT_SEND_COUNT;\r
   }\r
   //\r
-  // Parse the paramter of buffer size.\r
+  // Parse the parameter of buffer size.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-l");\r
   if (ValueStr != NULL) {\r
@@ -1639,7 +1639,7 @@ ShellCommandRunPing (
   ZeroMem (&DstAddress, sizeof (EFI_IPv6_ADDRESS));\r
 \r
   //\r
-  // Parse the paramter of source ip address.\r
+  // Parse the parameter of source ip address.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-s");\r
   if (ValueStr == NULL) {\r
@@ -1660,7 +1660,7 @@ ShellCommandRunPing (
     }\r
   }\r
   //\r
-  // Parse the paramter of destination ip address.\r
+  // Parse the parameter of destination ip address.\r
   //\r
   NonOptionCount = ShellCommandLineGetCount(ParamPackage);\r
   if (NonOptionCount < 2) {\r
index 90a2604388552727230ad91499f88d2d3a0110bd..265258f3bfeb8a36dff0ddc8007a7ecb5d384d36 100644 (file)
@@ -1177,7 +1177,7 @@ ShellCommandRunPing6 (
   BufferSize = 16;\r
 \r
   //\r
-  // Parse the paramter of count number.\r
+  // Parse the parameter of count number.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-n");\r
   ValueStrPtr = ValueStr;\r
@@ -1194,7 +1194,7 @@ ShellCommandRunPing6 (
     }\r
   }\r
   //\r
-  // Parse the paramter of buffer size.\r
+  // Parse the parameter of buffer size.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-l");\r
   ValueStrPtr = ValueStr;\r
@@ -1215,7 +1215,7 @@ ShellCommandRunPing6 (
   ZeroMem (&DstAddress, sizeof (EFI_IPv6_ADDRESS));\r
 \r
   //\r
-  // Parse the paramter of source ip address.\r
+  // Parse the parameter of source ip address.\r
   //\r
   ValueStr = ShellCommandLineGetValue (ParamPackage, L"-s");\r
   ValueStrPtr = ValueStr;\r
@@ -1229,7 +1229,7 @@ ShellCommandRunPing6 (
     }\r
   }\r
   //\r
-  // Parse the paramter of destination ip address.\r
+  // Parse the parameter of destination ip address.\r
   //\r
   NonOptionCount = ShellCommandLineGetCount(ParamPackage);\r
   ValueStr = ShellCommandLineGetRawValue (ParamPackage, (UINT32)(NonOptionCount-1));\r