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:
committed by
mergify[bot]
parent
dd0b33e3e5
commit
ccbbb4b1c5
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user