summaryrefslogtreecommitdiffstats
path: root/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-04-06 13:51:51 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-10 14:19:57 +0000
commit1295e37d4bb4c07f41cfa6ce298344aaf1563c72 (patch)
tree467083d03728a2cfc2904916fb68ccf30b123c25 /UnitTestFrameworkPkg/Library/UnitTestLib/Log.c
parentf20e35982b9172b0823e76315686f962640fb894 (diff)
downloadedk2-1295e37d4bb4c07f41cfa6ce298344aaf1563c72.tar.gz
edk2-1295e37d4bb4c07f41cfa6ce298344aaf1563c72.tar.bz2
edk2-1295e37d4bb4c07f41cfa6ce298344aaf1563c72.zip
UnitTestFrameworkPkg: Update 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 UnitTestFrameworkPkg. 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>
Diffstat (limited to 'UnitTestFrameworkPkg/Library/UnitTestLib/Log.c')
-rw-r--r--UnitTestFrameworkPkg/Library/UnitTestLib/Log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c b/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c
index 3998aafdf8..19eb8ee0db 100644
--- a/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c
+++ b/UnitTestFrameworkPkg/Library/UnitTestLib/Log.c
@@ -118,7 +118,7 @@ UnitTestLogInit (
// Make sure that you're cooking with gas.
//
if (Test == NULL) {
- DEBUG ((DEBUG_ERROR, "%a called with invalid Test parameter\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a called with invalid Test parameter\n", __func__));
return;
}