BaseTools: Various typo
Various typo in BaseTools. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur <coeur@gmx.fr> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
committed by
Liming Gao
parent
325ad62260
commit
fb0b35e05f
@@ -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;
|
||||
}
|
||||
|
@@ -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 ++;
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
--*/
|
||||
|
@@ -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
|
||||
|
||||
**/
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -36,7 +36,7 @@ typedef struct _GUID_SEC_TOOL_ENTRY {
|
||||
} GUID_SEC_TOOL_ENTRY;
|
||||
|
||||
//
|
||||
// Functin Implementation
|
||||
// Function Implementation
|
||||
//
|
||||
|
||||
EFI_HANDLE
|
||||
|
@@ -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.
|
||||
|
||||
|
@@ -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.
|
||||
|
||||
|
@@ -715,7 +715,7 @@ Returns:
|
||||
}
|
||||
|
||||
//
|
||||
// Check Input paramters
|
||||
// Check Input parameters
|
||||
//
|
||||
if (*InputFileName == NULL) {
|
||||
fprintf (stderr, "Missing option. Input files is not specified\n");
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -70,7 +70,7 @@ Routine Description:
|
||||
|
||||
Arguments:
|
||||
|
||||
Strin The string to 'strip'
|
||||
String The string to 'strip'
|
||||
|
||||
Returns:
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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).
|
||||
//
|
||||
|
Reference in New Issue
Block a user