[edk2-devel] [edk2-redfish-client][PATCH v2 10/11] RedfishFeatureCoreDxe: replace __FUNCTION__ with __func__
Mike Maslenkin
mike.maslenkin at gmail.com
Thu Oct 26 23:53:53 UTC 2023
Signed-off-by: Mike Maslenkin <mike.maslenkin at gmail.com>
---
.../RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c
index c19d4a46d6af..f71b12e4b5e0 100644
--- a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c
+++ b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c
@@ -319,14 +319,14 @@ NewInternalInstance (
REDFISH_FEATURE_INTERNAL_DATA *NewInternalData;
if ((PtrToNewInternalData == NULL) || (NodeName == NULL)) {
- DEBUG ((DEBUG_ERROR, "%a: Inproper given parameters\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: Inproper given parameters\n", __func__));
return EFI_INVALID_PARAMETER;
}
*PtrToNewInternalData = NULL;
NewInternalData = AllocateZeroPool (sizeof (REDFISH_FEATURE_INTERNAL_DATA));
if (NewInternalData == NULL) {
- DEBUG ((DEBUG_ERROR, "%a: No memory for REDFISH_FEATURE_INTERNAL_DATA\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: No memory for REDFISH_FEATURE_INTERNAL_DATA\n", __func__));
return EFI_OUT_OF_RESOURCES;
}
@@ -377,12 +377,12 @@ InsertRedfishFeatureUriNode (
*MatchNodeEntry = NULL;
if (NodeName == NULL) {
- DEBUG ((DEBUG_ERROR, "%a: Node name is NULL.\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: Node name is NULL.\n", __func__));
return EFI_INVALID_PARAMETER;
}
if (NextNodeEntry == NULL) {
- DEBUG ((DEBUG_ERROR, "%a: NextNodeEntry can't be NULL.\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: NextNodeEntry can't be NULL.\n", __func__));
return EFI_INVALID_PARAMETER;
}
@@ -487,7 +487,7 @@ RedfishFeatureRegister (
BOOLEAN ItsCollection;
if ((FeatureManagedUri == NULL) || (Callback == NULL)) {
- DEBUG ((DEBUG_ERROR, "%a: The given parameter is invalid\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: The given parameter is invalid\n", __func__));
return EFI_INVALID_PARAMETER;
}
@@ -503,7 +503,7 @@ RedfishFeatureRegister (
while ((Index < UriLength)) {
if ((Index - AnchorIndex + 1) >= MaxNodeNameLength) {
// Increase one for the NULL terminator
- DEBUG ((DEBUG_ERROR, "%a: the length of node name is >= MaxNodeNameLength\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: the length of node name is >= MaxNodeNameLength\n", __func__));
ASSERT (FALSE);
}
@@ -568,7 +568,7 @@ RedfishFeatureRegister (
//
// No URI node was created
//
- DEBUG ((DEBUG_ERROR, "%a: No URI node is added\n", __FUNCTION__));
+ DEBUG ((DEBUG_ERROR, "%a: No URI node is added\n", __func__));
return EFI_INVALID_PARAMETER;
}
--
2.32.0 (Apple Git-132)
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#110155): https://edk2.groups.io/g/devel/message/110155
Mute This Topic: https://groups.io/mt/102211779/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list