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>
This commit is contained in:
Rebecca Cran
2023-04-06 13:50:52 -06:00
committed by mergify[bot]
parent dd0b33e3e5
commit ccbbb4b1c5
6 changed files with 37 additions and 37 deletions

View File

@@ -116,7 +116,7 @@ RemoveDtStdoutPath (
DEBUG ((
DEBUG_INFO,
"%a: could not retrieve DT blob - %r\n",
__FUNCTION__,
__func__,
Status
));
return;
@@ -132,7 +132,7 @@ RemoveDtStdoutPath (
DEBUG ((
DEBUG_INFO,
"%a: Failed to delete 'stdout-path' property: %a\n",
__FUNCTION__,
__func__,
fdt_strerror (Error)
));
}
@@ -190,7 +190,7 @@ RemoveSpcrTable (
DEBUG ((
DEBUG_WARN,
"%a: failed to uninstall SPCR table - %r\n",
__FUNCTION__,
__func__,
Status
));
}
@@ -224,7 +224,7 @@ OnReadyToBoot (
DEBUG ((
DEBUG_ERROR,
"%a: variable '%s' could not be read - bailing!\n",
__FUNCTION__,
__func__,
CONSOLE_PREF_VARIABLE_NAME
));
return;
@@ -234,7 +234,7 @@ OnReadyToBoot (
DEBUG ((
DEBUG_INFO,
"%a: serial console preferred - doing nothing\n",
__FUNCTION__
__func__
));
return;
}
@@ -247,7 +247,7 @@ OnReadyToBoot (
DEBUG ((
DEBUG_INFO,
"%a: no GOP instances found - doing nothing (%r)\n",
__FUNCTION__,
__func__,
Status
));
return;
@@ -296,7 +296,7 @@ ConsolePrefDxeEntryPoint (
DEBUG ((
DEBUG_INFO,
"%a: no console preference found, defaulting to graphical\n",
__FUNCTION__
__func__
));
ConsolePref.Console = CONSOLE_PREF_GRAPHICAL;
}
@@ -308,7 +308,7 @@ ConsolePrefDxeEntryPoint (
DEBUG ((
DEBUG_WARN,
"%a: invalid value for %s, defaulting to graphical\n",
__FUNCTION__,
__func__,
CONSOLE_PREF_VARIABLE_NAME
));
ConsolePref.Console = CONSOLE_PREF_GRAPHICAL;
@@ -332,7 +332,7 @@ ConsolePrefDxeEntryPoint (
DEBUG ((
DEBUG_ERROR,
"%a: gRT->SetVariable () failed - %r\n",
__FUNCTION__,
__func__,
Status
));
return Status;