diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2023-04-06 13:49:10 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-10 14:19:57 +0000 |
commit | 089013a69724687f4051fc88367c9eb74def4284 (patch) | |
tree | c882324d96db9b5aac93679db07db9ee254cd59a /UefiCpuPkg/SecCore/SecMain.c | |
parent | 1639b6bf074c2ee694473d849e1dfa2028f78eab (diff) | |
download | edk2-089013a69724687f4051fc88367c9eb74def4284.tar.gz edk2-089013a69724687f4051fc88367c9eb74def4284.tar.bz2 edk2-089013a69724687f4051fc88367c9eb74def4284.zip |
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>
Diffstat (limited to 'UefiCpuPkg/SecCore/SecMain.c')
-rw-r--r-- | UefiCpuPkg/SecCore/SecMain.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index fe03d8019a..95375850ec 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -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
));
|