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/DtPlatformDxe/DtPlatformDxe.c | |
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/DtPlatformDxe/DtPlatformDxe.c')
-rw-r--r-- | EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c b/EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c index 7f7e8c446c..b94cd4da25 100644 --- a/EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c +++ b/EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c @@ -122,7 +122,7 @@ DtPlatformDxeEntryPoint ( DEBUG ((
DEBUG_WARN,
"%a: no DTB blob could be loaded, defaulting to ACPI (Status == %r)\n",
- __FUNCTION__,
+ __func__,
Status
));
DtAcpiPref.Pref = DT_ACPI_SELECT_ACPI;
@@ -142,7 +142,7 @@ DtPlatformDxeEntryPoint ( DEBUG ((
DEBUG_WARN,
"%a: no DT/ACPI preference found, defaulting to %a\n",
- __FUNCTION__,
+ __func__,
PcdGetBool (PcdDefaultDtPref) ? "DT" : "ACPI"
));
DtAcpiPref.Pref = PcdGetBool (PcdDefaultDtPref) ? DT_ACPI_SELECT_DT
@@ -157,7 +157,7 @@ DtPlatformDxeEntryPoint ( DEBUG ((
DEBUG_WARN,
"%a: invalid value for %s, defaulting to %a\n",
- __FUNCTION__,
+ __func__,
DT_ACPI_VARIABLE_NAME,
PcdGetBool (PcdDefaultDtPref) ? "DT" : "ACPI"
));
@@ -197,7 +197,7 @@ DtPlatformDxeEntryPoint ( DEBUG ((
DEBUG_ERROR,
"%a: failed to install gEdkiiPlatformHasAcpiGuid as a protocol\n",
- __FUNCTION__
+ __func__
));
goto FreeDtb;
}
@@ -211,7 +211,7 @@ DtPlatformDxeEntryPoint ( DEBUG ((
DEBUG_ERROR,
"%a: failed to install FDT configuration table\n",
- __FUNCTION__
+ __func__
));
goto FreeDtb;
}
|