MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@ -22,7 +22,7 @@ MemoryStatusCodeInitializeWorker (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status;
|
||||
|
||||
//
|
||||
// Allocate MM memory status code pool.
|
||||
@ -31,16 +31,15 @@ MemoryStatusCodeInitializeWorker (
|
||||
ASSERT (mMmMemoryStatusCodeTable != NULL);
|
||||
|
||||
mMmMemoryStatusCodeTable->MaxRecordsNumber = (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD);
|
||||
Status = gMmst->MmInstallConfigurationTable (
|
||||
gMmst,
|
||||
&gMemoryStatusCodeRecordGuid,
|
||||
&mMmMemoryStatusCodeTable,
|
||||
sizeof (mMmMemoryStatusCodeTable)
|
||||
);
|
||||
Status = gMmst->MmInstallConfigurationTable (
|
||||
gMmst,
|
||||
&gMemoryStatusCodeRecordGuid,
|
||||
&mMmMemoryStatusCodeTable,
|
||||
sizeof (mMmMemoryStatusCodeTable)
|
||||
);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Report status code into runtime memory. If the runtime pool is full, roll back to the
|
||||
first record and overwrite it.
|
||||
@ -62,19 +61,19 @@ MemoryStatusCodeInitializeWorker (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
MemoryStatusCodeReportWorker (
|
||||
IN EFI_STATUS_CODE_TYPE CodeType,
|
||||
IN EFI_STATUS_CODE_VALUE Value,
|
||||
IN UINT32 Instance,
|
||||
IN EFI_GUID *CallerId,
|
||||
IN EFI_STATUS_CODE_DATA *Data OPTIONAL
|
||||
IN EFI_STATUS_CODE_TYPE CodeType,
|
||||
IN EFI_STATUS_CODE_VALUE Value,
|
||||
IN UINT32 Instance,
|
||||
IN EFI_GUID *CallerId,
|
||||
IN EFI_STATUS_CODE_DATA *Data OPTIONAL
|
||||
)
|
||||
{
|
||||
MEMORY_STATUSCODE_RECORD *Record;
|
||||
MEMORY_STATUSCODE_RECORD *Record;
|
||||
|
||||
//
|
||||
// Locate current record buffer.
|
||||
//
|
||||
Record = (MEMORY_STATUSCODE_RECORD *) (mMmMemoryStatusCodeTable + 1);
|
||||
Record = (MEMORY_STATUSCODE_RECORD *)(mMmMemoryStatusCodeTable + 1);
|
||||
Record = &Record[mMmMemoryStatusCodeTable->RecordIndex++];
|
||||
|
||||
//
|
||||
@ -102,6 +101,3 @@ MemoryStatusCodeReportWorker (
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user