зеркало из https://github.com/microsoft/mu_plus.git
MsWheaPkg: Cspell: Fixing mis-spells
This change resolves all mis-spells by correcting the errors or grant exceptions to them.
This commit is contained in:
Родитель
5bf9c7c7f7
Коммит
4f5744382a
|
@ -334,7 +334,7 @@ ClearVariables (
|
||||||
Exit Boot Services Callback Handler
|
Exit Boot Services Callback Handler
|
||||||
|
|
||||||
@param[in] Event Event that signalled the callback.
|
@param[in] Event Event that signalled the callback.
|
||||||
@param[in] Context Pointer to an optional event contxt.
|
@param[in] Context Pointer to an optional event context.
|
||||||
|
|
||||||
@retval None.
|
@retval None.
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ ExitBootServicesHandlerCallback (
|
||||||
/**
|
/**
|
||||||
|
|
||||||
@param[in] Event Event that signalled the callback.
|
@param[in] Event Event that signalled the callback.
|
||||||
@param[in] Context Pointer to an optional event contxt.
|
@param[in] Context Pointer to an optional event context.
|
||||||
|
|
||||||
@retval None.
|
@retval None.
|
||||||
|
|
||||||
|
|
|
@ -349,7 +349,7 @@ UpdateForm (
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_ERROR,
|
DEBUG_ERROR,
|
||||||
"%a Error in HiiUpdateform. Code=%r\n",
|
"%a Error in HiiUpdateForm. Code=%r\n",
|
||||||
__FUNCTION__,
|
__FUNCTION__,
|
||||||
Status
|
Status
|
||||||
));
|
));
|
||||||
|
@ -617,7 +617,7 @@ ParseSectionData (
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we've run out of writtable lines, free this one and continue
|
// If we've run out of writable lines, free this one and continue
|
||||||
// so the rest are freed as well
|
// so the rest are freed as well
|
||||||
if ((*index) >= NUM_SEC_DATA_ROWS) {
|
if ((*index) >= NUM_SEC_DATA_ROWS) {
|
||||||
FreePool (StringParsePtr);
|
FreePool (StringParsePtr);
|
||||||
|
|
|
@ -24,7 +24,7 @@ typedef UINTN (*SECTIONFUNCTIONPTR)(
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
|
|
||||||
// Struct contained within the table in parserregistrylib.c
|
// Struct contained within the table in ParserRegistryLib.c
|
||||||
typedef struct SectionMapType {
|
typedef struct SectionMapType {
|
||||||
EFI_GUID Guid; // Section type
|
EFI_GUID Guid; // Section type
|
||||||
SECTIONFUNCTIONPTR Parser; // Function which parses the section data
|
SECTIONFUNCTIONPTR Parser; // Function which parses the section data
|
||||||
|
|
|
@ -77,7 +77,13 @@
|
||||||
"hwhmenu",
|
"hwhmenu",
|
||||||
"sectionfunctionptr",
|
"sectionfunctionptr",
|
||||||
"frontpage",
|
"frontpage",
|
||||||
"fvdxe"
|
"fvdxe",
|
||||||
|
"NUMSECTIONS",
|
||||||
|
"VARSEV",
|
||||||
|
"PREVERR",
|
||||||
|
"malformatted",
|
||||||
|
"Subcomponent",
|
||||||
|
|
||||||
],
|
],
|
||||||
"AdditionalIncludePaths": [] # Additional paths to spell check relative to package root (wildcards supported)
|
"AdditionalIncludePaths": [] # Additional paths to spell check relative to package root (wildcards supported)
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,8 +78,8 @@ typedef struct MS_WHEA_ERROR_ENTRY_MD_T_DEF {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This routine accepts the Common Platform Error Record header and Section
|
This routine accepts the Common Platform Error Record header and Section
|
||||||
Descriptor and correspthen store on the flash as HwErrRec awaiting to be picked up by OS
|
Descriptor and corresponding error information, then store on the flash
|
||||||
(Refer to UEFI Spec 2.7A)
|
as HwErrRec awaiting to be picked up by OS (Refer to UEFI Spec 2.7A)
|
||||||
|
|
||||||
@param[in] MsWheaEntryMD The pointer to reported MS WHEA error metadata
|
@param[in] MsWheaEntryMD The pointer to reported MS WHEA error metadata
|
||||||
|
|
||||||
|
|
|
@ -560,7 +560,7 @@ MsWheaReportHERAdd (
|
||||||
Status = WheaSetVariable (VarName, &gEfiHardwareErrorVariableGuid, Attributes, Size, Buffer);
|
Status = WheaSetVariable (VarName, &gEfiHardwareErrorVariableGuid, Attributes, Size, Buffer);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
DEBUG ((DEBUG_ERROR, "%a: Write size of %d at index %04X errored with (%r)\n", __FUNCTION__, Size, Index, Status));
|
DEBUG ((DEBUG_ERROR, "%a: Write size of %d at index %04X failed with (%r)\n", __FUNCTION__, Size, Index, Status));
|
||||||
} else {
|
} else {
|
||||||
DEBUG ((DEBUG_INFO, "%a: Write size of %d at index %04X succeeded\n", __FUNCTION__, Size, Index));
|
DEBUG ((DEBUG_INFO, "%a: Write size of %d at index %04X succeeded\n", __FUNCTION__, Size, Index));
|
||||||
}
|
}
|
||||||
|
|
|
@ -407,7 +407,7 @@ MsWheaESInitTest (
|
||||||
// Should fail
|
// Should fail
|
||||||
UT_ASSERT_FALSE (MsWheaESRegionIsValid (NULL));
|
UT_ASSERT_FALSE (MsWheaESRegionIsValid (NULL));
|
||||||
|
|
||||||
// Holy grail to retore everything
|
// Holy grail to restore everything
|
||||||
MsWheaESInit ();
|
MsWheaESInit ();
|
||||||
|
|
||||||
MsWheaESReadHeader (&UnitTestHeader);
|
MsWheaESReadHeader (&UnitTestHeader);
|
||||||
|
|
|
@ -112,7 +112,7 @@ MsWheaVerifyCPERHeader (
|
||||||
|
|
||||||
if (CperHdr->SignatureStart != EFI_ERROR_RECORD_SIGNATURE_START) {
|
if (CperHdr->SignatureStart != EFI_ERROR_RECORD_SIGNATURE_START) {
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
UT_LOG_ERROR ("CPER Header Singnature Start mismatch: %08X.", CperHdr->SignatureStart);
|
UT_LOG_ERROR ("CPER Header Signature Start mismatch: %08X.", CperHdr->SignatureStart);
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ MsWheaVerifyCPERHeader (
|
||||||
|
|
||||||
if (CperHdr->SignatureEnd != EFI_ERROR_RECORD_SIGNATURE_END) {
|
if (CperHdr->SignatureEnd != EFI_ERROR_RECORD_SIGNATURE_END) {
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
UT_LOG_ERROR ("CPER Header Singnature End mismatch: %08X.", CperHdr->SignatureEnd);
|
UT_LOG_ERROR ("CPER Header Signature End mismatch: %08X.", CperHdr->SignatureEnd);
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ MsWheaVerifyCPERSecDesc (
|
||||||
|
|
||||||
if (CperSecDecs->SectionOffset != HW_ERR_REC_HEADERS_OFFSET) {
|
if (CperSecDecs->SectionOffset != HW_ERR_REC_HEADERS_OFFSET) {
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
UT_LOG_ERROR ("CPER Section Descriptor Singnature Start mismatch: %08X.", CperSecDecs->SectionOffset);
|
UT_LOG_ERROR ("CPER Section Descriptor Signature Start mismatch: %08X.", CperSecDecs->SectionOffset);
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ MsWheaVerifyCPERSecDesc (
|
||||||
if (IsZeroBuffer (&CperSecDecs->FruId, sizeof (EFI_GUID)) == FALSE) {
|
if (IsZeroBuffer (&CperSecDecs->FruId, sizeof (EFI_GUID)) == FALSE) {
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
UT_LOG_ERROR (
|
UT_LOG_ERROR (
|
||||||
"CPER Section Descriptor Fru ID not emptry. Has: %g.",
|
"CPER Section Descriptor Fru ID not empty. Has: %g.",
|
||||||
CperSecDecs->FruId
|
CperSecDecs->FruId
|
||||||
);
|
);
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
@ -320,7 +320,7 @@ MsWheaVerifyCPERSecDesc (
|
||||||
|
|
||||||
if (IsZeroBuffer (&CperSecDecs->FruString, sizeof (CperSecDecs->FruString)) == FALSE) {
|
if (IsZeroBuffer (&CperSecDecs->FruString, sizeof (CperSecDecs->FruString)) == FALSE) {
|
||||||
Status = EFI_PROTOCOL_ERROR;
|
Status = EFI_PROTOCOL_ERROR;
|
||||||
UT_LOG_ERROR ("CPER Section Descriptor FruString not emptry.");
|
UT_LOG_ERROR ("CPER Section Descriptor FruString not empty.");
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче