]> git.proxmox.com Git - mirror_edk2.git/commitdiff
RedfishPkg/RedfishRestExDxe: Remove extra debug macro argument
authorMichael Kubacki <michael.kubacki@microsoft.com>
Tue, 2 Aug 2022 17:36:22 +0000 (13:36 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 9 Sep 2022 01:42:39 +0000 (01:42 +0000)
The debug macro argument in this change is removed since it does
have a corresponding print specifier in the debug message string.

Cc: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nickle@csie.io>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Abner Chang <abner.chang@amd.com>
Reviewed-by: Nickle Wang <nickle@csie.io>
RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c
RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c
RedfishPkg/RedfishRestExDxe/RedfishRestExProtocol.c

index 35dba40473a1410142a48d968da2a1727568d7d4..1293ddd633c662d2ba0407da2e7780d404a453d7 100644 (file)
@@ -263,12 +263,12 @@ Tcp6GetSubnetInfo (
 \r
   Status = Tcp6->GetModeData (Tcp6, NULL, NULL, &IpModedata, NULL, NULL);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((DEBUG_ERROR, "%a: Can't get IP mode data information\n"));\r
+    DEBUG ((DEBUG_ERROR, "%a: Can't get IP mode data information\n", __FUNCTION__));\r
     return Status;\r
   }\r
 \r
   if (IpModedata.AddressCount == 0) {\r
-    DEBUG ((DEBUG_INFO, "%a: No IPv6 address configured.\n"));\r
+    DEBUG ((DEBUG_INFO, "%a: No IPv6 address configured.\n", __FUNCTION__));\r
   }\r
 \r
   if (Instance->SubnetAddrInfoIPv6 != NULL) {\r
@@ -277,7 +277,7 @@ Tcp6GetSubnetInfo (
 \r
   Instance->SubnetAddrInfoIPv6 = AllocateZeroPool (IpModedata.AddressCount * sizeof (EFI_IP6_ADDRESS_INFO));\r
   if (Instance->SubnetAddrInfoIPv6 == NULL) {\r
-    DEBUG ((DEBUG_ERROR, "%a: Failed to allocate memory fir IPv6 subnet address information\n"));\r
+    DEBUG ((DEBUG_ERROR, "%a: Failed to allocate memory for IPv6 subnet address information\n", __FUNCTION__));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r
index 8a05764ac6054ea3b611c364eded4df001057d3e..623350bc261c3e445bff28de9a26ba3999d2d78f 100644 (file)
@@ -119,7 +119,7 @@ RedfishCreateSmbiosTable42 (
     } else {\r
       NewProtocolRecords = ReallocatePool (CurrentProtocolsDataLength, NewProtocolsDataLength, (VOID *)ProtocolRecords);\r
       if (NewProtocolRecords == NULL) {\r
-        DEBUG ((DEBUG_ERROR, "%a: Fail to allocate memory for Redfish host interface protocol data."));\r
+        DEBUG ((DEBUG_ERROR, "%a: Fail to allocate memory for Redfish host interface protocol data.", __FUNCTION__));\r
         FreePool (ProtocolRecords);\r
         FreePool (ProtocolRecord);\r
         return EFI_OUT_OF_RESOURCES;\r
index f224104ad67363748eb8dc9db0913817fd697cec..4b61fc01adc4e1a83e6275b17bb8696e87dc2a48 100644 (file)
@@ -224,7 +224,7 @@ ReSendRequest:;
     DEBUG ((DEBUG_INFO, "HTTP_STATUS_200_OK\n"));\r
 \r
     if (SendChunkProcess == HttpIoSendChunkHeaderZeroContent) {\r
-      DEBUG ((DEBUG_INFO, "This is chunk transfer, start to send all chunks.", ResponseData->Response.StatusCode));\r
+      DEBUG ((DEBUG_INFO, "This is chunk transfer, start to send all chunks."));\r
       SendChunkProcess++;\r
       goto ReSendRequest;\r
     }\r