UefiCpuPkg: Update code to be more C11 compliant by using __func__
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among others support, while __func__ was standardized in C99. Since it's more standard, replace __FUNCTION__ with __func__ throughout UefiCpuPkg. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
committed by
mergify[bot]
parent
1639b6bf07
commit
089013a697
@@ -170,7 +170,7 @@ SecStartup (
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a() TempRAM Base: 0x%x, TempRAM Size: 0x%x, BootFirmwareVolume 0x%x\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
TempRamBase,
|
||||
SizeOfRam,
|
||||
BootFirmwareVolume
|
||||
@@ -242,7 +242,7 @@ SecStartup (
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a() BFV Base: 0x%x, BFV Size: 0x%x, TempRAM Base: 0x%x, TempRAM Size: 0x%x, PeiTempRamBase: 0x%x, PeiTempRamSize: 0x%x, StackBase: 0x%x, StackSize: 0x%x\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
SecCoreData.BootFirmwareVolumeBase,
|
||||
SecCoreData.BootFirmwareVolumeSize,
|
||||
SecCoreData.TemporaryRamBase,
|
||||
@@ -345,7 +345,7 @@ SecStartupPhase2 (
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a() PeiCoreEntryPoint: 0x%x\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
PeiCoreEntryPoint
|
||||
));
|
||||
|
||||
@@ -394,7 +394,7 @@ SecStartupPhase2 (
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a() PeiTemporaryRamBase: 0x%x, PeiTemporaryRamSize: 0x%x\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
SecCoreData->PeiTemporaryRamBase,
|
||||
SecCoreData->PeiTemporaryRamSize
|
||||
));
|
||||
@@ -408,7 +408,7 @@ SecStartupPhase2 (
|
||||
DEBUG ((
|
||||
DEBUG_INFO,
|
||||
"%a() Stack Base: 0x%p, Stack Size: 0x%x\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
SecCoreData->StackBase,
|
||||
(UINT32)SecCoreData->StackSize
|
||||
));
|
||||
|
Reference in New Issue
Block a user