summaryrefslogtreecommitdiff
path: root/BaseTools/Source/C/Common
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/C/Common')
-rw-r--r--BaseTools/Source/C/Common/BasePeCoff.c6
-rw-r--r--BaseTools/Source/C/Common/CommonLib.c4
-rw-r--r--BaseTools/Source/C/Common/Crc32.c4
-rw-r--r--BaseTools/Source/C/Common/Crc32.h4
-rw-r--r--BaseTools/Source/C/Common/Decompress.c6
-rw-r--r--BaseTools/Source/C/Common/Decompress.h4
-rw-r--r--BaseTools/Source/C/Common/EfiCompress.c6
-rw-r--r--BaseTools/Source/C/Common/EfiUtilityMsgs.c8
-rw-r--r--BaseTools/Source/C/Common/FvLib.c4
-rw-r--r--BaseTools/Source/C/Common/OsPath.c2
-rw-r--r--BaseTools/Source/C/Common/OsPath.h2
-rw-r--r--BaseTools/Source/C/Common/ParseGuidedSectionTools.c2
-rw-r--r--BaseTools/Source/C/Common/ParseInf.c14
-rw-r--r--BaseTools/Source/C/Common/ParseInf.h2
-rw-r--r--BaseTools/Source/C/Common/PcdValueCommon.c2
-rw-r--r--BaseTools/Source/C/Common/PeCoffLib.h10
-rw-r--r--BaseTools/Source/C/Common/PeCoffLoaderEx.c12
-rw-r--r--BaseTools/Source/C/Common/SimpleFileParsing.c4
-rw-r--r--BaseTools/Source/C/Common/StringFuncs.h2
-rw-r--r--BaseTools/Source/C/Common/TianoCompress.c4
-rw-r--r--BaseTools/Source/C/Common/WinNtInclude.h2
21 files changed, 52 insertions, 52 deletions
diff --git a/BaseTools/Source/C/Common/BasePeCoff.c b/BaseTools/Source/C/Common/BasePeCoff.c
index d5cefbd..9112d01 100644
--- a/BaseTools/Source/C/Common/BasePeCoff.c
+++ b/BaseTools/Source/C/Common/BasePeCoff.c
@@ -217,7 +217,7 @@ Returns:
ImageContext->ImageType != EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER && \
ImageContext->ImageType != EFI_IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER) {
//
- // upsupported PeImage subsystem type
+ // unsupported PeImage subsystem type
//
return RETURN_UNSUPPORTED;
}
@@ -483,7 +483,7 @@ Returns:
// In Te image header there is not a field to describe the ImageSize.
// Actually, the ImageSize equals the RVA plus the VirtualSize of
// the last section mapped into memory (Must be rounded up to
- // a mulitple of Section Alignment). Per the PE/COFF specification, the
+ // a multiple of Section Alignment). Per the PE/COFF specification, the
// section headers in the Section Table must appear in order of the RVA
// values for the corresponding sections. So the ImageSize can be determined
// by the RVA and the VirtualSize of the last section header in the
@@ -1315,7 +1315,7 @@ PeCoffLoaderGetPdbPointer (
break;
default:
//
- // For unknow Machine field, use Magic in optional Header
+ // For unknown Machine field, use Magic in optional Header
//
Magic = Hdr.Pe32->OptionalHeader.Magic;
}
diff --git a/BaseTools/Source/C/Common/CommonLib.c b/BaseTools/Source/C/Common/CommonLib.c
index 5c40fdb..5179c70 100644
--- a/BaseTools/Source/C/Common/CommonLib.c
+++ b/BaseTools/Source/C/Common/CommonLib.c
@@ -2057,13 +2057,13 @@ IsHexStr (
)
{
//
- // skip preceeding white space
+ // skip preceding white space
//
while ((*Str != 0) && *Str == L' ') {
Str ++;
}
//
- // skip preceeding zeros
+ // skip preceding zeros
//
while ((*Str != 0) && *Str == L'0') {
Str ++;
diff --git a/BaseTools/Source/C/Common/Crc32.c b/BaseTools/Source/C/Common/Crc32.c
index dc15887..cbd10e0 100644
--- a/BaseTools/Source/C/Common/Crc32.c
+++ b/BaseTools/Source/C/Common/Crc32.c
@@ -1,5 +1,5 @@
/** @file
-CalcuateCrc32 routine.
+CalculateCrc32 routine.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
@@ -288,7 +288,7 @@ Routine Description:
Arguments:
- Data - The buffer contaning the data to be processed
+ Data - The buffer containing the data to be processed
DataSize - The size of data to be processed
CrcOut - A pointer to the caller allocated UINT32 that on
contains the CRC32 checksum of Data
diff --git a/BaseTools/Source/C/Common/Crc32.h b/BaseTools/Source/C/Common/Crc32.h
index 766f443..52072ee 100644
--- a/BaseTools/Source/C/Common/Crc32.h
+++ b/BaseTools/Source/C/Common/Crc32.h
@@ -1,5 +1,5 @@
/** @file
-Header file for CalcuateCrc32 routine
+Header file for CalculateCrc32 routine
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
@@ -31,7 +31,7 @@ Routine Description:
Arguments:
- Data - The buffer contaning the data to be processed
+ Data - The buffer containing the data to be processed
DataSize - The size of data to be processed
CrcOut - A pointer to the caller allocated UINT32 that on
contains the CRC32 checksum of Data
diff --git a/BaseTools/Source/C/Common/Decompress.c b/BaseTools/Source/C/Common/Decompress.c
index 33e0f0d..0e9ba0a 100644
--- a/BaseTools/Source/C/Common/Decompress.c
+++ b/BaseTools/Source/C/Common/Decompress.c
@@ -747,7 +747,7 @@ Arguments:
Returns:
- EFI_SUCCESS - Decompression is successfull
+ EFI_SUCCESS - Decompression is successful
EFI_INVALID_PARAMETER - The source data is corrupted
--*/
@@ -902,7 +902,7 @@ Arguments:
Returns:
- EFI_SUCCESS - Decompression is successfull
+ EFI_SUCCESS - Decompression is successful
EFI_INVALID_PARAMETER - The source data is corrupted
--*/
@@ -937,7 +937,7 @@ Arguments:
Returns:
- EFI_SUCCESS - Decompression is successfull
+ EFI_SUCCESS - Decompression is successful
EFI_INVALID_PARAMETER - The source data is corrupted
--*/
diff --git a/BaseTools/Source/C/Common/Decompress.h b/BaseTools/Source/C/Common/Decompress.h
index 22ac1df..a44e0ae 100644
--- a/BaseTools/Source/C/Common/Decompress.h
+++ b/BaseTools/Source/C/Common/Decompress.h
@@ -70,7 +70,7 @@ Arguments:
Returns:
- EFI_SUCCESS - Decompression is successfull
+ EFI_SUCCESS - Decompression is successful
EFI_INVALID_PARAMETER - The source data is corrupted
**/
@@ -128,7 +128,7 @@ Arguments:
Returns:
- EFI_SUCCESS - Decompression is successfull
+ EFI_SUCCESS - Decompression is successful
EFI_INVALID_PARAMETER - The source data is corrupted
**/
diff --git a/BaseTools/Source/C/Common/EfiCompress.c b/BaseTools/Source/C/Common/EfiCompress.c
index 33d4c5e..0f6b286 100644
--- a/BaseTools/Source/C/Common/EfiCompress.c
+++ b/BaseTools/Source/C/Common/EfiCompress.c
@@ -396,7 +396,7 @@ Routine Description:
Allocate memory spaces for data structures used in compression process
-Argements: (VOID)
+Arguments: (VOID)
Returns:
@@ -652,7 +652,7 @@ Returns: (VOID)
//
// We have just got a long match, the target tree
- // can be located by MatchPos + 1. Travese the tree
+ // can be located by MatchPos + 1. Traverse the tree
// from bottom up to get to a proper starting point.
// The usage of PERC_FLAG ensures proper node deletion
// in DeleteNode() later.
@@ -1281,7 +1281,7 @@ Routine Description:
Outputs rightmost n bits of x
-Argments:
+Arguments:
n - the rightmost n bits of the data is used
x - the data
diff --git a/BaseTools/Source/C/Common/EfiUtilityMsgs.c b/BaseTools/Source/C/Common/EfiUtilityMsgs.c
index 44925c6..b32afd3 100644
--- a/BaseTools/Source/C/Common/EfiUtilityMsgs.c
+++ b/BaseTools/Source/C/Common/EfiUtilityMsgs.c
@@ -21,7 +21,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "EfiUtilityMsgs.h"
//
-// Declare module globals for keeping track of the the utility's
+// Declare module globals for keeping track of the utility's
// name and other settings.
//
STATIC STATUS mStatus = STATUS_SUCCESS;
@@ -61,7 +61,7 @@ Arguments:
at least something valid is not specified.
FileName - name of the file or application. If not specified, then the
- utilty name (as set by the utility calling SetUtilityName()
+ utility name (as set by the utility calling SetUtilityName()
earlier) is used. Otherwise "Unknown utility" is used.
LineNumber - the line number of error, typically used by parsers. If the
@@ -384,7 +384,7 @@ Routine Description:
Arguments:
Type - "warning" or "error" string to insert into the message to be
printed. The first character of this string (converted to uppercase)
- is used to preceed the MessageCode value in the output string.
+ is used to precede the MessageCode value in the output string.
FileName - name of the file where the warning was detected, or the name
of the application that detected the warning
@@ -597,7 +597,7 @@ Routine Description:
Arguments:
UtilityName - name of the utility, which will be printed with all
- error/warning/debug messags.
+ error/warning/debug messages.
Returns:
NA
diff --git a/BaseTools/Source/C/Common/FvLib.c b/BaseTools/Source/C/Common/FvLib.c
index b5ae45d..d53a743 100644
--- a/BaseTools/Source/C/Common/FvLib.c
+++ b/BaseTools/Source/C/Common/FvLib.c
@@ -318,7 +318,7 @@ Routine Description:
Arguments:
FileType Type of file to search for.
- Instance Instace of the file type to return.
+ Instance Instance of the file type to return.
File Return pointer. In the case of an error, contents are undefined.
Returns:
@@ -505,7 +505,7 @@ Arguments:
File The file to search.
SectionType Type of file to search for.
- Instance Instace of the section to return.
+ Instance Instance of the section to return.
Section Return pointer. In the case of an error, contents are undefined.
Returns:
diff --git a/BaseTools/Source/C/Common/OsPath.c b/BaseTools/Source/C/Common/OsPath.c
index b46516d..b4504a3 100644
--- a/BaseTools/Source/C/Common/OsPath.c
+++ b/BaseTools/Source/C/Common/OsPath.c
@@ -228,7 +228,7 @@ Routine Description:
Arguments:
OldPath Path name of replace the final segment
- Peer The new path name to concatinate to become the peer path
+ Peer The new path name to concatenate to become the peer path
Returns:
diff --git a/BaseTools/Source/C/Common/OsPath.h b/BaseTools/Source/C/Common/OsPath.h
index d3d75ea..3b04cfe 100644
--- a/BaseTools/Source/C/Common/OsPath.h
+++ b/BaseTools/Source/C/Common/OsPath.h
@@ -104,7 +104,7 @@ Routine Description:
Arguments:
OldPath Path name of replace the final segment
- Peer The new path name to concatinate to become the peer path
+ Peer The new path name to concatenate to become the peer path
Returns:
diff --git a/BaseTools/Source/C/Common/ParseGuidedSectionTools.c b/BaseTools/Source/C/Common/ParseGuidedSectionTools.c
index 5afe963..4cc3fca 100644
--- a/BaseTools/Source/C/Common/ParseGuidedSectionTools.c
+++ b/BaseTools/Source/C/Common/ParseGuidedSectionTools.c
@@ -36,7 +36,7 @@ typedef struct _GUID_SEC_TOOL_ENTRY {
} GUID_SEC_TOOL_ENTRY;
//
-// Functin Implementation
+// Function Implementation
//
EFI_HANDLE
diff --git a/BaseTools/Source/C/Common/ParseInf.c b/BaseTools/Source/C/Common/ParseInf.c
index 4d10ff8..3907f44 100644
--- a/BaseTools/Source/C/Common/ParseInf.c
+++ b/BaseTools/Source/C/Common/ParseInf.c
@@ -233,7 +233,7 @@ Returns:
CHAR8 *Delimiter;
BOOLEAN ParseError;
BOOLEAN ReadError;
- UINTN Occurrance;
+ UINTN Occurrence;
//
// Check input parameters
@@ -258,7 +258,7 @@ Returns:
//
// Initialize our instance counter for the search token
//
- Occurrance = 0;
+ Occurrence = 0;
if (FindSection (InputFile, Section)) {
//
@@ -307,7 +307,7 @@ Returns:
//
// Check if it is the correct instance
//
- if (Instance == Occurrance) {
+ if (Instance == Occurrence) {
//
// Copy the contents following the =
//
@@ -338,9 +338,9 @@ Returns:
}
} else {
//
- // Increment the occurrance found
+ // Increment the occurrence found
//
- Occurrance++;
+ Occurrence++;
}
}
} while (
@@ -348,7 +348,7 @@ Returns:
!ReadError &&
InputFile->CurrentFilePointer < InputFile->Eof &&
CurrentToken[0] != '[' &&
- Occurrance <= Instance
+ Occurrence <= Instance
);
}
//
@@ -478,7 +478,7 @@ AsciiStringToUint64 (
Routine Description:
Converts a null terminated ascii string that represents a number into a
- UINT64 value. A hex number may be preceeded by a 0x, but may not be
+ UINT64 value. A hex number may be preceded by a 0x, but may not be
succeeded by an h. A number without 0x or 0X is considered to be base 10
unless the IsHex input is true.
diff --git a/BaseTools/Source/C/Common/ParseInf.h b/BaseTools/Source/C/Common/ParseInf.h
index 903ce71..a8fde74 100644
--- a/BaseTools/Source/C/Common/ParseInf.h
+++ b/BaseTools/Source/C/Common/ParseInf.h
@@ -153,7 +153,7 @@ AsciiStringToUint64 (
Routine Description:
Converts a null terminated ascii string that represents a number into a
- UINT64 value. A hex number may be preceeded by a 0x, but may not be
+ UINT64 value. A hex number may be preceded by a 0x, but may not be
succeeded by an h. A number without 0x or 0X is considered to be base 10
unless the IsHex input is true.
diff --git a/BaseTools/Source/C/Common/PcdValueCommon.c b/BaseTools/Source/C/Common/PcdValueCommon.c
index fa12869..b95a7a8 100644
--- a/BaseTools/Source/C/Common/PcdValueCommon.c
+++ b/BaseTools/Source/C/Common/PcdValueCommon.c
@@ -715,7 +715,7 @@ Returns:
}
//
- // Check Input paramters
+ // Check Input parameters
//
if (*InputFileName == NULL) {
fprintf (stderr, "Missing option. Input files is not specified\n");
diff --git a/BaseTools/Source/C/Common/PeCoffLib.h b/BaseTools/Source/C/Common/PeCoffLib.h
index 80c8c33..c250471 100644
--- a/BaseTools/Source/C/Common/PeCoffLib.h
+++ b/BaseTools/Source/C/Common/PeCoffLib.h
@@ -148,7 +148,7 @@ PeCoffLoaderGetEntryPoint (
//
/**
- Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and
+ Pass in a pointer to an ARM MOVT or MOVW immediate instruction and
return the immediate data encoded in the instruction
@param Instruction Pointer to ARM MOVT or MOVW immediate instruction
@@ -166,7 +166,7 @@ ThumbMovtImmediateAddress (
Update an ARM MOVT or MOVW immediate instruction immediate data.
@param Instruction Pointer to ARM MOVT or MOVW immediate instruction
- @param Address New addres to patch into the instruction
+ @param Address New address to patch into the instruction
**/
VOID
@@ -178,10 +178,10 @@ ThumbMovtImmediatePatch (
/**
- Pass in a pointer to an ARM MOVW/MOVT instruciton pair and
+ Pass in a pointer to an ARM MOVW/MOVT instruction pair and
return the immediate data encoded in the two` instruction
- @param Instructions Pointer to ARM MOVW/MOVT insturction pair
+ @param Instructions Pointer to ARM MOVW/MOVT instruction pair
@return Immediate address encoded in the instructions
@@ -196,7 +196,7 @@ ThumbMovwMovtImmediateAddress (
Update an ARM MOVW/MOVT immediate instruction instruction pair.
@param Instructions Pointer to ARM MOVW/MOVT instruction pair
- @param Address New addres to patch into the instructions
+ @param Address New address to patch into the instructions
**/
VOID
EFIAPI
diff --git a/BaseTools/Source/C/Common/PeCoffLoaderEx.c b/BaseTools/Source/C/Common/PeCoffLoaderEx.c
index fa8c7e3..43e66e7 100644
--- a/BaseTools/Source/C/Common/PeCoffLoaderEx.c
+++ b/BaseTools/Source/C/Common/PeCoffLoaderEx.c
@@ -101,7 +101,7 @@ Returns:
/**
- Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and
+ Pass in a pointer to an ARM MOVT or MOVW immediate instruction and
return the immediate data encoded in the instruction
@param Instruction Pointer to ARM MOVT or MOVW immediate instruction
@@ -137,7 +137,7 @@ ThumbMovtImmediateAddress (
Update an ARM MOVT or MOVW immediate instruction immediate data.
@param Instruction Pointer to ARM MOVT or MOVW immediate instruction
- @param Address New addres to patch into the instruction
+ @param Address New address to patch into the instruction
**/
VOID
ThumbMovtImmediatePatch (
@@ -147,7 +147,7 @@ ThumbMovtImmediatePatch (
{
UINT16 Patch;
- // First 16-bit chunk of instruciton
+ // First 16-bit chunk of instruction
Patch = ((Address >> 12) & 0x000f); // imm4
Patch |= (((Address & BIT11) != 0) ? BIT10 : 0); // i
*Instruction = (*Instruction & ~0x040f) | Patch;
@@ -160,10 +160,10 @@ ThumbMovtImmediatePatch (
}
/**
- Pass in a pointer to an ARM MOVW/MOVT instruciton pair and
+ Pass in a pointer to an ARM MOVW/MOVT instruction pair and
return the immediate data encoded in the two` instruction
- @param Instructions Pointer to ARM MOVW/MOVT insturction pair
+ @param Instructions Pointer to ARM MOVW/MOVT instruction pair
@return Immediate address encoded in the instructions
@@ -188,7 +188,7 @@ ThumbMovwMovtImmediateAddress (
Update an ARM MOVW/MOVT immediate instruction instruction pair.
@param Instructions Pointer to ARM MOVW/MOVT instruction pair
- @param Address New addres to patch into the instructions
+ @param Address New address to patch into the instructions
**/
VOID
EFIAPI
diff --git a/BaseTools/Source/C/Common/SimpleFileParsing.c b/BaseTools/Source/C/Common/SimpleFileParsing.c
index e7da044..23ef9c8 100644
--- a/BaseTools/Source/C/Common/SimpleFileParsing.c
+++ b/BaseTools/Source/C/Common/SimpleFileParsing.c
@@ -356,7 +356,7 @@ Returns:
FALSE - otherwise
Notes:
- Preceeding white space is ignored.
+ Preceding white space is ignored.
The parser's buffer pointer is advanced past the end of the
token.
@@ -636,7 +636,7 @@ Returns:
// Make sure we didn't exceed our maximum nesting depth
//
if (NestDepth > MAX_NEST_DEPTH) {
- Error (NULL, 0, 3001, "Not Supported", "%s exceeeds max nesting depth (%u)", SourceFile->FileName, (unsigned) NestDepth);
+ Error (NULL, 0, 3001, "Not Supported", "%s exceeds max nesting depth (%u)", SourceFile->FileName, (unsigned) NestDepth);
Status = STATUS_ERROR;
goto Finish;
}
diff --git a/BaseTools/Source/C/Common/StringFuncs.h b/BaseTools/Source/C/Common/StringFuncs.h
index 0675cb9..eca9670 100644
--- a/BaseTools/Source/C/Common/StringFuncs.h
+++ b/BaseTools/Source/C/Common/StringFuncs.h
@@ -70,7 +70,7 @@ Routine Description:
Arguments:
- Strin The string to 'strip'
+ String The string to 'strip'
Returns:
diff --git a/BaseTools/Source/C/Common/TianoCompress.c b/BaseTools/Source/C/Common/TianoCompress.c
index 8b1ea7f..1f70b75 100644
--- a/BaseTools/Source/C/Common/TianoCompress.c
+++ b/BaseTools/Source/C/Common/TianoCompress.c
@@ -404,7 +404,7 @@ Routine Description:
Allocate memory spaces for data structures used in compression process
-Argements:
+Arguments:
VOID
Returns:
@@ -680,7 +680,7 @@ Returns: (VOID)
if (mMatchLen >= 4) {
//
// We have just got a long match, the target tree
- // can be located by MatchPos + 1. Travese the tree
+ // can be located by MatchPos + 1. Traverse the tree
// from bottom up to get to a proper starting point.
// The usage of PERC_FLAG ensures proper node deletion
// in DeleteNode() later.
diff --git a/BaseTools/Source/C/Common/WinNtInclude.h b/BaseTools/Source/C/Common/WinNtInclude.h
index 6b6af2e..f66e038 100644
--- a/BaseTools/Source/C/Common/WinNtInclude.h
+++ b/BaseTools/Source/C/Common/WinNtInclude.h
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
// Win32 include files do not compile clean with /W4, so we use the warning
-// pragma to suppress the warnings for Win32 only. This way our code can stil
+// pragma to suppress the warnings for Win32 only. This way our code can still
// compile at /W4 (highest warning level) with /WX (warnings cause build
// errors).
//