OvmfPkg: 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 OvmfPkg. 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: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
committed by
mergify[bot]
parent
089013a697
commit
8ba392687b
@@ -111,7 +111,7 @@ VirtioFsFuseFlush (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||
"Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
FuseHandle,
|
||||
|
@@ -116,7 +116,7 @@ VirtioFsFuseFsyncFileOrDir (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||
"IsDir=%d Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
FuseHandle,
|
||||
|
@@ -116,7 +116,7 @@ VirtioFsFuseGetAttr (
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
CommonResp.Error
|
||||
|
@@ -125,7 +125,7 @@ VirtioFsFuseInitSession (
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
CommonResp.Error
|
||||
));
|
||||
|
@@ -128,7 +128,7 @@ VirtioFsFuseLookup (
|
||||
DEBUG_VERBOSE :
|
||||
DEBUG_ERROR),
|
||||
"%a: Label=\"%s\" DirNodeId=%Lu Name=\"%a\" Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
DirNodeId,
|
||||
Name,
|
||||
|
@@ -127,7 +127,7 @@ VirtioFsFuseMkDir (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
|
||||
"Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
ParentNodeId,
|
||||
Name,
|
||||
|
@@ -119,7 +119,7 @@ VirtioFsFuseOpen (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu ReadWrite=%d "
|
||||
"Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
ReadWrite,
|
||||
|
@@ -113,7 +113,7 @@ VirtioFsFuseOpenDir (
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
CommonResp.Error
|
||||
|
@@ -146,7 +146,7 @@ VirtioFsFuseOpenOrCreate (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
|
||||
"Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
ParentNodeId,
|
||||
Name,
|
||||
|
@@ -178,7 +178,7 @@ VirtioFsFuseReadFileOrDir (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||
"IsDir=%d Offset=0x%Lx Size=0x%x Data@%p Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
FuseHandle,
|
||||
|
@@ -116,7 +116,7 @@ VirtioFsFuseReleaseFileOrDir (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||
"IsDir=%d Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
FuseHandle,
|
||||
|
@@ -130,7 +130,7 @@ VirtioFsFuseRename (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" OldParentNodeId=%Lu OldName=\"%a\" "
|
||||
"NewParentNodeId=%Lu NewName=\"%a\" Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
OldParentNodeId,
|
||||
OldName,
|
||||
|
@@ -164,7 +164,7 @@ VirtioFsFuseSetAttr (
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId
|
||||
));
|
||||
|
@@ -102,7 +102,7 @@ VirtioFsFuseStatFs (
|
||||
DEBUG ((
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
CommonResp.Error
|
||||
|
@@ -109,7 +109,7 @@ VirtioFsFuseRemoveFileOrDir (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" ParentNodeId=%Lu Name=\"%a\" "
|
||||
"IsDir=%d Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
ParentNodeId,
|
||||
Name,
|
||||
|
@@ -147,7 +147,7 @@ VirtioFsFuseWrite (
|
||||
DEBUG_ERROR,
|
||||
"%a: Label=\"%s\" NodeId=%Lu FuseHandle=%Lu "
|
||||
"Offset=0x%Lx Size=0x%x Data@%p Errno=%d\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
NodeId,
|
||||
FuseHandle,
|
||||
|
@@ -320,7 +320,7 @@ VirtioFsExitBoot (
|
||||
DEBUG ((
|
||||
DEBUG_VERBOSE,
|
||||
"%a: VirtioFs=0x%p Label=\"%s\"\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFsAsVoid,
|
||||
VirtioFs->Label
|
||||
));
|
||||
|
@@ -378,7 +378,7 @@ VirtioFsSimpleFileOpen (
|
||||
("%a: Label=\"%s\" CanonicalPathname=\"%a\" FileName=\"%s\" "
|
||||
"OpenMode=0x%Lx Attributes=0x%Lx: nonsensical request to possibly "
|
||||
"create a file marked read-only, for read-write access\n"),
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
VirtioFsFile->CanonicalPathname,
|
||||
FileName,
|
||||
@@ -403,7 +403,7 @@ VirtioFsSimpleFileOpen (
|
||||
("%a: Label=\"%s\" CanonicalPathname=\"%a\" FileName=\"%s\": "
|
||||
"nonsensical request to open a file or directory relative to a regular "
|
||||
"file\n"),
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
VirtioFs->Label,
|
||||
VirtioFsFile->CanonicalPathname,
|
||||
FileName
|
||||
|
Reference in New Issue
Block a user