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
@ -14,8 +14,8 @@
|
||||
|
||||
#include <Guid/MemoryProfile.h>
|
||||
|
||||
EDKII_MEMORY_PROFILE_PROTOCOL *mLibProfileProtocol;
|
||||
EDKII_SMM_MEMORY_PROFILE_PROTOCOL *mLibSmmProfileProtocol;
|
||||
EDKII_MEMORY_PROFILE_PROTOCOL *mLibProfileProtocol;
|
||||
EDKII_SMM_MEMORY_PROFILE_PROTOCOL *mLibSmmProfileProtocol;
|
||||
|
||||
/**
|
||||
Check whether the start address of buffer is within any of the SMRAM ranges.
|
||||
@ -28,7 +28,7 @@ EDKII_SMM_MEMORY_PROFILE_PROTOCOL *mLibSmmProfileProtocol;
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
BufferInSmram (
|
||||
IN VOID *Buffer
|
||||
IN VOID *Buffer
|
||||
);
|
||||
|
||||
/**
|
||||
@ -47,7 +47,7 @@ SmmMemoryProfileLibConstructor (
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status;
|
||||
|
||||
//
|
||||
// Locate Profile Protocol
|
||||
@ -98,18 +98,19 @@ SmmMemoryProfileLibConstructor (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
MemoryProfileLibRecord (
|
||||
IN PHYSICAL_ADDRESS CallerAddress,
|
||||
IN MEMORY_PROFILE_ACTION Action,
|
||||
IN EFI_MEMORY_TYPE MemoryType,
|
||||
IN VOID *Buffer,
|
||||
IN UINTN Size,
|
||||
IN CHAR8 *ActionString OPTIONAL
|
||||
IN PHYSICAL_ADDRESS CallerAddress,
|
||||
IN MEMORY_PROFILE_ACTION Action,
|
||||
IN EFI_MEMORY_TYPE MemoryType,
|
||||
IN VOID *Buffer,
|
||||
IN UINTN Size,
|
||||
IN CHAR8 *ActionString OPTIONAL
|
||||
)
|
||||
{
|
||||
if (BufferInSmram (Buffer)) {
|
||||
if (mLibSmmProfileProtocol == NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
return mLibSmmProfileProtocol->Record (
|
||||
mLibSmmProfileProtocol,
|
||||
CallerAddress,
|
||||
@ -123,6 +124,7 @@ MemoryProfileLibRecord (
|
||||
if (mLibProfileProtocol == NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
return mLibProfileProtocol->Record (
|
||||
mLibProfileProtocol,
|
||||
CallerAddress,
|
||||
@ -134,4 +136,3 @@ MemoryProfileLibRecord (
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user