summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Misc
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-06 13:50:06 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-10 14:19:57 +0000
commit7b82da70edf7dda2c6f4e853f100df620bd5c0f3 (patch)
tree25d8d93d558f8cb02342fd2364202d9e48f29deb /MdeModulePkg/Core/Dxe/Misc
parent8ba392687b6f7fcb6e333756edd090003c57402e (diff)
downloadedk2-7b82da70edf7dda2c6f4e853f100df620bd5c0f3.zip
edk2-7b82da70edf7dda2c6f4e853f100df620bd5c0f3.tar.gz
edk2-7b82da70edf7dda2c6f4e853f100df620bd5c0f3.tar.bz2
MdeModulePkg: 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 MdeModulePkg. 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>
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Misc')
-rw-r--r--MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
index b89ab04..7cc829b 100644
--- a/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
+++ b/MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
@@ -838,7 +838,7 @@ InitializeDxeNxMemoryProtectionPolicy (
DEBUG ((
DEBUG_INFO,
"%a: StackBase = 0x%016lx StackSize = 0x%016lx\n",
- __FUNCTION__,
+ __func__,
MemoryHob->AllocDescriptor.MemoryBaseAddress,
MemoryHob->AllocDescriptor.MemoryLength
));
@@ -864,7 +864,7 @@ InitializeDxeNxMemoryProtectionPolicy (
DEBUG ((
DEBUG_INFO,
"%a: applying strict permissions to active memory regions\n",
- __FUNCTION__
+ __func__
));
MergeMemoryMapForProtectionPolicy (MemoryMap, &MemoryMapSize, DescriptorSize);
@@ -926,7 +926,7 @@ InitializeDxeNxMemoryProtectionPolicy (
DEBUG ((
DEBUG_INFO,
"%a: applying strict permissions to inactive memory regions\n",
- __FUNCTION__
+ __func__
));
CoreAcquireGcdMemoryLock ();