- Pacakge -> Package
- outputed -> outputted
- successull -> successfully
- Libary -> Library
- Pointion -> Position
- paramter -> parameter
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
12 files changed:
- EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
+ EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
- EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
+ EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
- EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
+ EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
--*/\r
- EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
+ EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
**/\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
**/\r
- EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
+ EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
**/\r
EFI_INVALID_PARAMETER - The source data is corrupted\r
\r
**/\r
- // Check input paramter\r
+ // Check input parameter\r
//\r
if (AsciiString == NULL || ReturnValue == NULL) {\r
return EFI_INVALID_PARAMETER;\r
//\r
if (AsciiString == NULL || ReturnValue == NULL) {\r
return EFI_INVALID_PARAMETER;\r
for (FList = mOptions.FileList; FList != NULL; FList = FList->Next) {\r
if (stricmp (mOptions.OutFileName, FList->FileName) == 0) {\r
Status = STATUS_ERROR;\r
for (FList = mOptions.FileList; FList != NULL; FList = FList->Next) {\r
if (stricmp (mOptions.OutFileName, FList->FileName) == 0) {\r
Status = STATUS_ERROR;\r
- Error (NULL, 0, 1002, "Invalid input paramter", "Input and output file names must be different - %s = %s.", FList->FileName, mOptions.OutFileName);\r
+ Error (NULL, 0, 1002, "Invalid input parameter", "Input and output file names must be different - %s = %s.", FList->FileName, mOptions.OutFileName);\r
// Check total size\r
//\r
if (TotalSize > MAX_OPTION_ROM_SIZE) {\r
// Check total size\r
//\r
if (TotalSize > MAX_OPTION_ROM_SIZE) {\r
- Error (NULL, 0, 2000, "Invalid paramter", "Option ROM image size exceeds limit of 0x%X bytes.", MAX_OPTION_ROM_SIZE);\r
+ Error (NULL, 0, 2000, "Invalid parameter", "Option ROM image size exceeds limit of 0x%X bytes.", MAX_OPTION_ROM_SIZE);\r
Status = STATUS_ERROR;\r
}\r
\r
Status = STATUS_ERROR;\r
}\r
\r
VerboseMsg ("%s tool start.", UTILITY_NAME);\r
\r
//\r
VerboseMsg ("%s tool start.", UTILITY_NAME);\r
\r
//\r
- // Check Input paramters\r
+ // Check Input parameters\r
//\r
if (FileAction == CRC32_NULL) {\r
Error (NULL, 0, 1001, "Missing option", "either the encode or the decode option must be specified!");\r
//\r
if (FileAction == CRC32_NULL) {\r
Error (NULL, 0, 1001, "Missing option", "either the encode or the decode option must be specified!");\r
VerboseMsg ("%s tool start.", UTILITY_NAME);\r
\r
//\r
VerboseMsg ("%s tool start.", UTILITY_NAME);\r
\r
//\r
- // Check the complete input paramters.\r
+ // Check the complete input parameters.\r
//\r
if (FfsFiletype == EFI_FV_FILETYPE_ALL) {\r
Error (NULL, 0, 1001, "Missing option", "filetype");\r
//\r
if (FfsFiletype == EFI_FV_FILETYPE_ALL) {\r
Error (NULL, 0, 1001, "Missing option", "filetype");\r
EFI_HII_PACKAGE_LIST_HEADER HiiPackageListHeader;\r
EFI_HII_PACKAGE_HEADER HiiPackageHeader;\r
EFI_IFR_FORM_SET IfrFormSet;\r
EFI_HII_PACKAGE_LIST_HEADER HiiPackageListHeader;\r
EFI_HII_PACKAGE_HEADER HiiPackageHeader;\r
EFI_IFR_FORM_SET IfrFormSet;\r
- UINT8 NumberOfFormPacakge;\r
+ UINT8 NumberOfFormPackage;\r
EFI_HII_PACKAGE_HEADER EndPackage;\r
UINT32 HiiSectionHeaderSize;\r
UINT8 *HiiSectionHeader;\r
EFI_HII_PACKAGE_HEADER EndPackage;\r
UINT32 HiiSectionHeaderSize;\r
UINT8 *HiiSectionHeader;\r
KeepExceptionTableFlag = FALSE;\r
KeepOptionalHeaderFlag = FALSE;\r
KeepZeroPendingFlag = FALSE;\r
KeepExceptionTableFlag = FALSE;\r
KeepOptionalHeaderFlag = FALSE;\r
KeepZeroPendingFlag = FALSE;\r
- NumberOfFormPacakge = 0;\r
+ NumberOfFormPackage = 0;\r
HiiPackageListBuffer = NULL;\r
HiiPackageDataPointer = NULL;\r
EndPackage.Length = sizeof (EFI_HII_PACKAGE_HEADER);\r
HiiPackageListBuffer = NULL;\r
HiiPackageDataPointer = NULL;\r
EndPackage.Length = sizeof (EFI_HII_PACKAGE_HEADER);\r
fread (&IfrFormSet, 1, sizeof (IfrFormSet), fpIn);\r
memcpy (&HiiPackageListGuid, &IfrFormSet.Guid, sizeof (EFI_GUID));\r
}\r
fread (&IfrFormSet, 1, sizeof (IfrFormSet), fpIn);\r
memcpy (&HiiPackageListGuid, &IfrFormSet.Guid, sizeof (EFI_GUID));\r
}\r
- NumberOfFormPacakge ++;\r
+ NumberOfFormPackage ++;\r
}\r
HiiPackageListHeader.PackageLength += FileLength;\r
fclose (fpIn);\r
}\r
HiiPackageListHeader.PackageLength += FileLength;\r
fclose (fpIn);\r
//\r
// Check whether hii packages are valid\r
//\r
//\r
// Check whether hii packages are valid\r
//\r
- if (NumberOfFormPacakge > 1) {\r
+ if (NumberOfFormPackage > 1) {\r
Error (NULL, 0, 3000, "Invalid", "The input hii packages contains more than one hii form package");\r
goto Finish;\r
}\r
Error (NULL, 0, 3000, "Invalid", "The input hii packages contains more than one hii form package");\r
goto Finish;\r
}\r
- // Don't recognize the paramter.\r
+ // Don't recognize the parameter.\r
//\r
InputFile = argv[0];\r
argc--;\r
//\r
InputFile = argv[0];\r
argc--;\r
STATUS Status;\r
\r
if (InputFileNum > 1) {\r
STATUS Status;\r
\r
if (InputFileNum > 1) {\r
- Error (NULL, 0, 2000, "Invalid paramter", "more than one input file specified");\r
+ Error (NULL, 0, 2000, "Invalid parameter", "more than one input file specified");\r
return STATUS_ERROR;\r
} else if (InputFileNum < 1) {\r
return STATUS_ERROR;\r
} else if (InputFileNum < 1) {\r
- Error (NULL, 0, 2000, "Invalid paramter", "no input file specified");\r
+ Error (NULL, 0, 2000, "Invalid parameter", "no input file specified");\r
return STATUS_ERROR;\r
}\r
//\r
return STATUS_ERROR;\r
}\r
//\r
// Size must fit in 3 bytes\r
//\r
//if (TotalLength >= MAX_SECTION_SIZE) {\r
// Size must fit in 3 bytes\r
//\r
//if (TotalLength >= MAX_SECTION_SIZE) {\r
- // Error (NULL, 0, 2000, "Invalid paramter", "%s file size (0x%X) exceeds section size limit(%uM).", InputFileName[0], (unsigned) TotalLength, MAX_SECTION_SIZE>>20);\r
+ // Error (NULL, 0, 2000, "Invalid parameter", "%s file size (0x%X) exceeds section size limit(%uM).", InputFileName[0], (unsigned) TotalLength, MAX_SECTION_SIZE>>20);\r
// goto Done;\r
//}\r
HeaderLength = sizeof (EFI_COMMON_SECTION_HEADER);\r
// goto Done;\r
//}\r
HeaderLength = sizeof (EFI_COMMON_SECTION_HEADER);\r
UINT32 HeaderSize;\r
\r
if (InputFileNum < 1) {\r
UINT32 HeaderSize;\r
\r
if (InputFileNum < 1) {\r
- Error (NULL, 0, 2000, "Invalid paramter", "must specify at least one input file");\r
+ Error (NULL, 0, 2000, "Invalid parameter", "must specify at least one input file");\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
if (BufferLength == NULL) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
if (BufferLength == NULL) {\r
- Error (NULL, 0, 2000, "Invalid paramter", "BufferLength can't be NULL");\r
+ Error (NULL, 0, 2000, "Invalid parameter", "BufferLength can't be NULL");\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- Error (NULL, 0, 2000, "Invalid paramter", "unknown compression type");\r
+ Error (NULL, 0, 2000, "Invalid parameter", "unknown compression type");\r
free (FileBuffer);\r
return EFI_ABORTED;\r
}\r
free (FileBuffer);\r
return EFI_ABORTED;\r
}\r
"the original section size is %d bytes and the compressed section size is %u bytes", (unsigned) InputLength, (unsigned) CompressedLength);\r
\r
//if (TotalLength >= MAX_SECTION_SIZE) {\r
"the original section size is %d bytes and the compressed section size is %u bytes", (unsigned) InputLength, (unsigned) CompressedLength);\r
\r
//if (TotalLength >= MAX_SECTION_SIZE) {\r
- // Error (NULL, 0, 2000, "Invalid paramter", "The size of all files exceeds section size limit(%uM).", MAX_SECTION_SIZE>>20);\r
+ // Error (NULL, 0, 2000, "Invalid parameter", "The size of all files exceeds section size limit(%uM).", MAX_SECTION_SIZE>>20);\r
// if (FileBuffer != NULL) {\r
// free (FileBuffer);\r
// }\r
// if (FileBuffer != NULL) {\r
// free (FileBuffer);\r
// }\r
if (strlen(argv[0]) > 2) {\r
Status = CountVerboseLevel (&argv[0][2], strlen(argv[0]) - 2, &VerboseLevel);\r
if (EFI_ERROR (Status)) {\r
if (strlen(argv[0]) > 2) {\r
Status = CountVerboseLevel (&argv[0][2], strlen(argv[0]) - 2, &VerboseLevel);\r
if (EFI_ERROR (Status)) {\r
- Error (NULL, 0, 0x1003, NULL, "%s is invaild paramter!", argv[0]);\r
+ Error (NULL, 0, 0x1003, NULL, "%s is invaild parameter!", argv[0]);\r
return STATUS_ERROR;\r
}\r
}\r
return STATUS_ERROR;\r
}\r
}\r
- // Don't recognize the paramter.\r
+ // Don't recognize the parameter.\r
- Error (NULL, 0, 0x1003, NULL, "%s is invaild paramter!", argv[0]);\r
+ Error (NULL, 0, 0x1003, NULL, "%s is invaild parameter!", argv[0]);\r
return STATUS_ERROR;\r
}\r
\r
return STATUS_ERROR;\r
}\r
\r
- Internal include file for Tiano Decompress Libary.\r
+ Internal include file for Tiano Decompress Library.\r
\r
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
\r
Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
/**\r
Reads code lengths for the Extra Set or the Position Set.\r
\r
/**\r
Reads code lengths for the Extra Set or the Position Set.\r
\r
- Read in the Extra Set or Pointion Set Length Arrary, then\r
+ Read in the Extra Set or Position Set Length Array, then\r
generate the Huffman code mapping for them.\r
\r
@param Sd The global scratch data.\r
generate the Huffman code mapping for them.\r
\r
@param Sd The global scratch data.\r
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
#pragma warn -aus /* unused assignment of 'xxx' */\r
#endif\r
\r
-int action_no = 0; /* keep track of actions outputed */\r
+int action_no = 0; /* keep track of actions outputted */\r
int nfa_allocated = 0; /* keeps track of number of nfa nodes */\r
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */\r
nfa_node nfa_model_node; /* model to initialize new nodes */\r
int nfa_allocated = 0; /* keeps track of number of nfa nodes */\r
nfa_node **nfa_array = NULL;/* root of binary tree that stores nfa array */\r
nfa_node nfa_model_node; /* model to initialize new nodes */\r