diff options
author | Rebecca Cran <rebecca@bsdio.com> | 2023-04-06 13:50:52 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-04-10 14:19:57 +0000 |
commit | ccbbb4b1c5bd039673c783eec281bd52a2407ffd (patch) | |
tree | 37e153631faabfcd9a6e9f4a79f97409c2e5cdc2 /EmbeddedPkg/Drivers/FdtClientDxe | |
parent | dd0b33e3e55957aecbae6aa5cebdc6c14e6e8932 (diff) | |
download | edk2-ccbbb4b1c5bd039673c783eec281bd52a2407ffd.tar.gz edk2-ccbbb4b1c5bd039673c783eec281bd52a2407ffd.tar.bz2 edk2-ccbbb4b1c5bd039673c783eec281bd52a2407ffd.zip |
EmbeddedPkg: 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
EmbeddedPkg.
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: Abner Chang <abner.chang@amd.com>
Diffstat (limited to 'EmbeddedPkg/Drivers/FdtClientDxe')
-rw-r--r-- | EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c b/EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c index b182c77d19..7da505a313 100644 --- a/EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c +++ b/EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.c @@ -222,7 +222,7 @@ FindCompatibleNodeReg ( DEBUG ((
DEBUG_ERROR,
"%a: '%a' compatible node has invalid 'reg' property (size == 0x%x)\n",
- __FUNCTION__,
+ __func__,
CompatibleString,
*RegSize
));
@@ -263,7 +263,7 @@ FindNextMemoryNodeReg ( }
if (!IsNodeEnabled (Next)) {
- DEBUG ((DEBUG_WARN, "%a: ignoring disabled memory node\n", __FUNCTION__));
+ DEBUG ((DEBUG_WARN, "%a: ignoring disabled memory node\n", __func__));
continue;
}
@@ -279,7 +279,7 @@ FindNextMemoryNodeReg ( DEBUG ((
DEBUG_WARN,
"%a: ignoring memory node with no 'reg' property\n",
- __FUNCTION__
+ __func__
));
continue;
}
@@ -288,7 +288,7 @@ FindNextMemoryNodeReg ( DEBUG ((
DEBUG_WARN,
"%a: ignoring memory node with invalid 'reg' property (size == 0x%x)\n",
- __FUNCTION__,
+ __func__,
*RegSize
));
continue;
@@ -391,7 +391,7 @@ OnPlatformHasDeviceTree ( DEBUG ((
DEBUG_INFO,
"%a: exposing DTB @ 0x%p to OS\n",
- __FUNCTION__,
+ __func__,
DeviceTreeBase
));
Status = gBS->InstallConfigurationTable (&gFdtTableGuid, DeviceTreeBase);
@@ -424,7 +424,7 @@ InitializeFdtClientDxe ( DEBUG ((
DEBUG_ERROR,
"%a: No DTB found @ 0x%p\n",
- __FUNCTION__,
+ __func__,
DeviceTreeBase
));
return EFI_NOT_FOUND;
@@ -432,7 +432,7 @@ InitializeFdtClientDxe ( mDeviceTreeBase = DeviceTreeBase;
- DEBUG ((DEBUG_INFO, "%a: DTB @ 0x%p\n", __FUNCTION__, mDeviceTreeBase));
+ DEBUG ((DEBUG_INFO, "%a: DTB @ 0x%p\n", __func__, mDeviceTreeBase));
//
// Register a protocol notify for the EDKII Platform Has Device Tree
@@ -446,7 +446,7 @@ InitializeFdtClientDxe ( &PlatformHasDeviceTreeEvent
);
if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "%a: CreateEvent(): %r\n", __FUNCTION__, Status));
+ DEBUG ((DEBUG_ERROR, "%a: CreateEvent(): %r\n", __func__, Status));
return Status;
}
@@ -459,7 +459,7 @@ InitializeFdtClientDxe ( DEBUG ((
DEBUG_ERROR,
"%a: RegisterProtocolNotify(): %r\n",
- __FUNCTION__,
+ __func__,
Status
));
goto CloseEvent;
@@ -470,7 +470,7 @@ InitializeFdtClientDxe ( //
Status = gBS->SignalEvent (PlatformHasDeviceTreeEvent);
if (EFI_ERROR (Status)) {
- DEBUG ((DEBUG_ERROR, "%a: SignalEvent(): %r\n", __FUNCTION__, Status));
+ DEBUG ((DEBUG_ERROR, "%a: SignalEvent(): %r\n", __func__, Status));
goto CloseEvent;
}
@@ -484,7 +484,7 @@ InitializeFdtClientDxe ( DEBUG ((
DEBUG_ERROR,
"%a: InstallProtocolInterface(): %r\n",
- __FUNCTION__,
+ __func__,
Status
));
goto CloseEvent;
|