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 <PiDxe.h>
|
||||
|
||||
#include <Guid/PerformanceMeasurement.h>
|
||||
@ -24,7 +23,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// The cached Performance Protocol and PerformanceEx Protocol interface.
|
||||
//
|
||||
EDKII_PERFORMANCE_MEASUREMENT_PROTOCOL *mPerformanceMeasurement = NULL;
|
||||
EDKII_PERFORMANCE_MEASUREMENT_PROTOCOL *mPerformanceMeasurement = NULL;
|
||||
|
||||
/**
|
||||
The function caches the pointers to PerformanceEx protocol and Performance Protocol.
|
||||
@ -40,14 +39,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 = gBS->LocateProtocol (&gEdkiiPerformanceMeasurementProtocolGuid, NULL, (VOID **) &PerformanceMeasurement);
|
||||
Status = gBS->LocateProtocol (&gEdkiiPerformanceMeasurementProtocolGuid, NULL, (VOID **)&PerformanceMeasurement);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
ASSERT (PerformanceMeasurement != NULL);
|
||||
//
|
||||
@ -92,8 +91,8 @@ StartPerformanceMeasurementEx (
|
||||
IN UINT32 Identifier
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8* String;
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8 *String;
|
||||
|
||||
Status = GetPerformanceMeasurementProtocol ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
@ -114,7 +113,7 @@ StartPerformanceMeasurementEx (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -151,8 +150,8 @@ EndPerformanceMeasurementEx (
|
||||
IN UINT32 Identifier
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8* String;
|
||||
EFI_STATUS Status;
|
||||
CONST CHAR8 *String;
|
||||
|
||||
Status = GetPerformanceMeasurementProtocol ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
@ -173,7 +172,7 @@ EndPerformanceMeasurementEx (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -220,17 +219,16 @@ 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;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -341,12 +339,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;
|
||||
@ -370,7 +368,7 @@ PerformanceMeasurementEnabled (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
return (BOOLEAN) ((PcdGet8(PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);
|
||||
return (BOOLEAN)((PcdGet8 (PcdPerformanceLibraryPropertyMask) & PERFORMANCE_LIBRARY_PROPERTY_MEASUREMENT_ENABLED) != 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -394,7 +392,7 @@ LogPerformanceMeasurement (
|
||||
IN CONST VOID *CallerIdentifier,
|
||||
IN CONST VOID *Guid OPTIONAL,
|
||||
IN CONST CHAR8 *String OPTIONAL,
|
||||
IN UINT64 Address OPTIONAL,
|
||||
IN UINT64 Address OPTIONAL,
|
||||
IN UINT32 Identifier
|
||||
)
|
||||
{
|
||||
@ -411,7 +409,7 @@ LogPerformanceMeasurement (
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
|
||||
return (RETURN_STATUS) Status;
|
||||
return (RETURN_STATUS)Status;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -429,14 +427,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