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
@ -11,7 +11,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
|
||||
#include <Guid/PerformanceMeasurement.h>
|
||||
|
||||
#include <Library/PerformanceLib.h>
|
||||
@ -41,8 +40,7 @@ SmmPerformanceLibConstructor (
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
|
||||
mPerformanceMeasurementEnabled = (BOOLEAN) ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);
|
||||
mPerformanceMeasurementEnabled = (BOOLEAN)((PcdGet8 (PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
@ -61,14 +59,14 @@ GetPerformanceMeasurementProtocol (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EDKII_PERFORMANCE_MEASUREMENT_PROTOCOL *PerformanceMeasurement;
|
||||
EFI_STATUS Status;
|
||||
EDKII_PERFORMANCE_MEASUREMENT_PROTOCOL *PerformanceMeasurement;
|
||||
|
||||
if (mPerformanceMeasurement != NULL) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
Status = gSmst->SmmLocateProtocol (&gEdkiiSmmPerformanceMeasurementProtocolGuid, NULL, (VOID **) &PerformanceMeasurement);
|
||||
Status = gSmst->SmmLocateProtocol (&gEdkiiSmmPerformanceMeasurementProtocolGuid, NULL, (VOID **)&PerformanceMeasurement);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
ASSERT (PerformanceMeasurement != NULL);
|
||||
//
|
||||
@ -77,6 +75,7 @@ GetPerformanceMeasurementProtocol (
|
||||
mPerformanceMeasurement = PerformanceMeasurement;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
return EFI_NOT_FOUND;
|
||||
}
|
||||
|
||||
@ -112,8 +111,8 @@ StartPerformanceMeasurementEx (
|
||||
IN UINT32 Identifier
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8* String;
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8 *String;
|
||||
|
||||
Status = GetPerformanceMeasurementProtocol ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
@ -134,7 +133,7 @@ StartPerformanceMeasurementEx (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -171,8 +170,8 @@ EndPerformanceMeasurementEx (
|
||||
IN UINT32 Identifier
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8* String;
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8 *String;
|
||||
|
||||
Status = GetPerformanceMeasurementProtocol ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
@ -193,7 +192,7 @@ EndPerformanceMeasurementEx (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -240,13 +239,13 @@ EndPerformanceMeasurementEx (
|
||||
UINTN
|
||||
EFIAPI
|
||||
GetPerformanceMeasurementEx (
|
||||
IN UINTN LogEntryKey,
|
||||
OUT CONST VOID **Handle,
|
||||
OUT CONST CHAR8 **Token,
|
||||
OUT CONST CHAR8 **Module,
|
||||
OUT UINT64 *StartTimeStamp,
|
||||
OUT UINT64 *EndTimeStamp,
|
||||
OUT UINT32 *Identifier
|
||||
IN UINTN LogEntryKey,
|
||||
OUT CONST VOID **Handle,
|
||||
OUT CONST CHAR8 **Token,
|
||||
OUT CONST CHAR8 **Module,
|
||||
OUT UINT64 *StartTimeStamp,
|
||||
OUT UINT64 *EndTimeStamp,
|
||||
OUT UINT32 *Identifier
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
@ -360,12 +359,12 @@ EndPerformanceMeasurement (
|
||||
UINTN
|
||||
EFIAPI
|
||||
GetPerformanceMeasurement (
|
||||
IN UINTN LogEntryKey,
|
||||
OUT CONST VOID **Handle,
|
||||
OUT CONST CHAR8 **Token,
|
||||
OUT CONST CHAR8 **Module,
|
||||
OUT UINT64 *StartTimeStamp,
|
||||
OUT UINT64 *EndTimeStamp
|
||||
IN UINTN LogEntryKey,
|
||||
OUT CONST VOID **Handle,
|
||||
OUT CONST CHAR8 **Token,
|
||||
OUT CONST CHAR8 **Module,
|
||||
OUT UINT64 *StartTimeStamp,
|
||||
OUT UINT64 *EndTimeStamp
|
||||
)
|
||||
{
|
||||
return 0;
|
||||
@ -430,7 +429,7 @@ LogPerformanceMeasurement (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -448,14 +447,15 @@ LogPerformanceMeasurement (
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
LogPerformanceMeasurementEnabled (
|
||||
IN CONST UINTN Type
|
||||
IN CONST UINTN Type
|
||||
)
|
||||
{
|
||||
//
|
||||
// When Performance measurement is enabled and the type is not filtered, the performance can be logged.
|
||||
//
|
||||
if (PerformanceMeasurementEnabled () && (PcdGet8(PcdPerformanceLibraryPropertyMask) & Type) == 0) {
|
||||
if (PerformanceMeasurementEnabled () && ((PcdGet8 (PcdPerformanceLibraryPropertyMask) & Type) == 0)) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user