summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-06 13:50:52 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-10 14:19:57 +0000
commitccbbb4b1c5bd039673c783eec281bd52a2407ffd (patch)
tree37e153631faabfcd9a6e9f4a79f97409c2e5cdc2 /EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c
parentdd0b33e3e55957aecbae6aa5cebdc6c14e6e8932 (diff)
downloadedk2-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/ConsolePrefDxe/ConsolePrefDxe.c')
-rw-r--r--EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c b/EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c
index 07b82892eb..2c2e73e720 100644
--- a/EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c
+++ b/EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.c
@@ -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;