summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2016-10-19 15:01:35 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-11-15 11:05:34 +0800
commit268d344557c38198d34359b50532df343bada5f1 (patch)
tree2da457baf92b0446a00a36a260751b68735bb217 /ShellPkg
parentbe9007810e722cb733e334b2dc4c9bbe26fdbb7d (diff)
downloadedk2-268d344557c38198d34359b50532df343bada5f1.tar.gz
edk2-268d344557c38198d34359b50532df343bada5f1.tar.bz2
edk2-268d344557c38198d34359b50532df343bada5f1.zip
ShellPkg: Fix typos in comments and variables
- 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>
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Include/Library/ShellCEntryLib.h2
-rw-r--r--ShellPkg/Include/Library/ShellCommandLib.h2
-rw-r--r--ShellPkg/Include/Protocol/EfiShellEnvironment2.h2
-rw-r--r--ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c2
-rw-r--r--ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c10
-rw-r--r--ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c2
-rw-r--r--ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c8
-rw-r--r--ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c8
8 files changed, 18 insertions, 18 deletions
diff --git a/ShellPkg/Include/Library/ShellCEntryLib.h b/ShellPkg/Include/Library/ShellCEntryLib.h
index dfbb16f9c3..e4983f840c 100644
--- a/ShellPkg/Include/Library/ShellCEntryLib.h
+++ b/ShellPkg/Include/Library/ShellCEntryLib.h
@@ -1,5 +1,5 @@
/** @file
- Provides application point extension for "C" style main funciton.
+ Provides application point extension for "C" style main function.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
diff --git a/ShellPkg/Include/Library/ShellCommandLib.h b/ShellPkg/Include/Library/ShellCommandLib.h
index e9a2c0365d..c11d81d506 100644
--- a/ShellPkg/Include/Library/ShellCommandLib.h
+++ b/ShellPkg/Include/Library/ShellCommandLib.h
@@ -2,7 +2,7 @@
Provides interface to shell internal functions for shell commands.
This library is for use ONLY by shell commands linked into the shell application.
- This library will not funciton if it is used for UEFI Shell 2.0 Applications.
+ This library will not function if it is used for UEFI Shell 2.0 Applications.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
diff --git a/ShellPkg/Include/Protocol/EfiShellEnvironment2.h b/ShellPkg/Include/Protocol/EfiShellEnvironment2.h
index 1aa1b7e328..ac6c6a0114 100644
--- a/ShellPkg/Include/Protocol/EfiShellEnvironment2.h
+++ b/ShellPkg/Include/Protocol/EfiShellEnvironment2.h
@@ -124,7 +124,7 @@ GUID for the shell environment2 extension (main GUID above).
@param[in] ParentImageHandle Handle of the image executing this operation.
@param[in] CommandLine The string command line to execute.
@param[in] DebugOutput TRUE indicates that errors should be printed directly.
- FALSE supresses error messages.
+ FALSE suppresses error messages.
@retval EFI_SUCCESS The command line executed and completed.
@retval EFI_ABORTED The operation aborted.
diff --git a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
index 7fcdedbb05..61b3ec97e2 100644
--- a/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
+++ b/ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.c
@@ -1,5 +1,5 @@
/** @file
- Provides application point extension for "C" style main funciton
+ Provides application point extension for "C" style main function
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
index 00a4c10edc..e07304cd7f 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Dh.c
@@ -130,7 +130,7 @@ IsDriverProt (
@param[in] TheHandle The handles to show info on.
@param[in] Language Language string per UEFI specification.
- @param[in] Seperator Separator string between information blocks.
+ @param[in] Separator Separator string between information blocks.
@param[in] Verbose TRUE for extra info, FALSE otherwise.
@param[in] ExtraInfo TRUE for extra info, FALSE otherwise.
@@ -141,7 +141,7 @@ CHAR16*
GetProtocolInfoString(
IN CONST EFI_HANDLE TheHandle,
IN CONST CHAR8 *Language,
- IN CONST CHAR16 *Seperator,
+ IN CONST CHAR16 *Separator,
IN CONST BOOLEAN Verbose,
IN CONST BOOLEAN ExtraInfo
)
@@ -169,7 +169,7 @@ GetProtocolInfoString(
if (Temp != NULL) {
ASSERT((RetVal == NULL && Size == 0) || (RetVal != NULL));
if (Size != 0) {
- StrnCatGrow(&RetVal, &Size, Seperator, 0);
+ StrnCatGrow(&RetVal, &Size, Separator, 0);
}
StrnCatGrow(&RetVal, &Size, L"%H", 0);
StrnCatGrow(&RetVal, &Size, Temp, 0);
@@ -185,7 +185,7 @@ GetProtocolInfoString(
StrnCatGrow(&RetVal, &Size, Temp, 0);
StrnCatGrow(&RetVal, &Size, L")\r\n", 0);
} else {
- StrnCatGrow(&RetVal, &Size, Seperator, 0);
+ StrnCatGrow(&RetVal, &Size, Separator, 0);
StrnCatGrow(&RetVal, &Size, Temp, 0);
}
FreePool(Temp);
@@ -201,7 +201,7 @@ GetProtocolInfoString(
}
ASSERT((RetVal == NULL && Size == 0) || (RetVal != NULL));
- StrnCatGrow(&RetVal, &Size, Seperator, 0);
+ StrnCatGrow(&RetVal, &Size, Separator, 0);
return (RetVal);
}
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
index 1491ee9d06..7948e53cfc 100644
--- a/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
+++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
@@ -99,7 +99,7 @@ ShellLevel2CommandsLibConstructor (
ShellCommandRegisterCommandName(L"vol", ShellCommandRunVol , ShellCommandGetManFileNameLevel2, 2, L"", TRUE, gShellLevel2HiiHandle, STRING_TOKEN(STR_GET_HELP_VOL) );
//
- // support for permenant (built in) aliases
+ // support for permanent (built in) aliases
//
ShellCommandRegisterAlias(L"rm", L"del");
ShellCommandRegisterAlias(L"ls", L"dir");
diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
index b7d08d51e6..ca5c22a618 100644
--- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
+++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
@@ -1599,7 +1599,7 @@ ShellCommandRunPing (
}
//
- // Parse the paramter of count number.
+ // Parse the parameter of count number.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-n");
if (ValueStr != NULL) {
@@ -1617,7 +1617,7 @@ ShellCommandRunPing (
SendNumber = DEFAULT_SEND_COUNT;
}
//
- // Parse the paramter of buffer size.
+ // Parse the parameter of buffer size.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-l");
if (ValueStr != NULL) {
@@ -1639,7 +1639,7 @@ ShellCommandRunPing (
ZeroMem (&DstAddress, sizeof (EFI_IPv6_ADDRESS));
//
- // Parse the paramter of source ip address.
+ // Parse the parameter of source ip address.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-s");
if (ValueStr == NULL) {
@@ -1660,7 +1660,7 @@ ShellCommandRunPing (
}
}
//
- // Parse the paramter of destination ip address.
+ // Parse the parameter of destination ip address.
//
NonOptionCount = ShellCommandLineGetCount(ParamPackage);
if (NonOptionCount < 2) {
diff --git a/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c b/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
index 90a2604388..265258f3bf 100644
--- a/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
+++ b/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
@@ -1177,7 +1177,7 @@ ShellCommandRunPing6 (
BufferSize = 16;
//
- // Parse the paramter of count number.
+ // Parse the parameter of count number.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-n");
ValueStrPtr = ValueStr;
@@ -1194,7 +1194,7 @@ ShellCommandRunPing6 (
}
}
//
- // Parse the paramter of buffer size.
+ // Parse the parameter of buffer size.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-l");
ValueStrPtr = ValueStr;
@@ -1215,7 +1215,7 @@ ShellCommandRunPing6 (
ZeroMem (&DstAddress, sizeof (EFI_IPv6_ADDRESS));
//
- // Parse the paramter of source ip address.
+ // Parse the parameter of source ip address.
//
ValueStr = ShellCommandLineGetValue (ParamPackage, L"-s");
ValueStrPtr = ValueStr;
@@ -1229,7 +1229,7 @@ ShellCommandRunPing6 (
}
}
//
- // Parse the paramter of destination ip address.
+ // Parse the parameter of destination ip address.
//
NonOptionCount = ShellCommandLineGetCount(ParamPackage);
ValueStr = ShellCommandLineGetRawValue (ParamPackage, (UINT32)(NonOptionCount-1));