summaryrefslogtreecommitdiff
path: root/RedfishPkg/PrivateLibrary
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@amd.com>2023-05-30 15:06:13 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-31 08:42:58 +0000
commitd15d2667d58d40c0748919ac4b5771b875c0780b (patch)
tree90afecfbda1cd97d68e3f656a6342db9d9f87493 /RedfishPkg/PrivateLibrary
parentd8e5d35ede7158ccbb9abf600e65b9aa6e043f74 (diff)
downloadedk2-d15d2667d58d40c0748919ac4b5771b875c0780b.zip
edk2-d15d2667d58d40c0748919ac4b5771b875c0780b.tar.gz
edk2-d15d2667d58d40c0748919ac4b5771b875c0780b.tar.bz2
RedfishPkg: Use DEBUG_MANAGEABILITY
Use debug print level DEBUG_MANAGEABILITY in RedfishPkg. Signed-off-by: Abner Chang <abner.chang@amd.com> Cc: Nickle Wang <nicklew@nvidia.com> Cc: Igor Kulchytskyy <igork@ami.com> Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Diffstat (limited to 'RedfishPkg/PrivateLibrary')
-rw-r--r--RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c2
-rw-r--r--RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c8
-rw-r--r--RedfishPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service.c10
3 files changed, 10 insertions, 10 deletions
diff --git a/RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c b/RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c
index f240dfb..57a997f 100644
--- a/RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c
+++ b/RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c
@@ -548,7 +548,7 @@ strtod (
char **__restrict endptr
)
{
- DEBUG ((DEBUG_INFO, "We don't supprot double type on edk2 yet!"));
+ DEBUG ((DEBUG_ERROR, "We don't supprot double type on edk2 yet!"));
ASSERT (FALSE);
return (double)0;
}
diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c
index 0a0a4e6..cca0ea7 100644
--- a/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c
+++ b/RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c
@@ -946,7 +946,7 @@ RedfishDumpJsonStringFractions (
return;
}
- DEBUG ((DEBUG_INFO, "JSON text:\n"));
+ DEBUG ((DEBUG_MANAGEABILITY, "JSON text:\n"));
NextFraction = String;
StrLen = AsciiStrLen (String);
if (StrLen == 0) {
@@ -956,13 +956,13 @@ RedfishDumpJsonStringFractions (
for (Count = 0; Count < (StrLen / StringFractionSize); Count++) {
BackupChar = *(NextFraction + StringFractionSize);
*(NextFraction + StringFractionSize) = 0;
- DEBUG ((DEBUG_INFO, "%a", NextFraction));
+ DEBUG ((DEBUG_MANAGEABILITY, "%a", NextFraction));
*(NextFraction + StringFractionSize) = BackupChar;
NextFraction += StringFractionSize;
}
if ((StrLen % StringFractionSize) != 0) {
- DEBUG ((DEBUG_INFO, "%a\n\n", NextFraction));
+ DEBUG ((DEBUG_MANAGEABILITY, "%a\n\n", NextFraction));
}
}
@@ -1101,7 +1101,7 @@ RedfishIsValidOdataType (
}
}
- DEBUG ((DEBUG_INFO, "%a: This Odata type is not in the list.\n", __func__));
+ DEBUG ((DEBUG_MANAGEABILITY, "%a: This Odata type is not in the list.\n", __func__));
return FALSE;
}
diff --git a/RedfishPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service.c b/RedfishPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service.c
index 206094d..286f298 100644
--- a/RedfishPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service.c
+++ b/RedfishPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service.c
@@ -428,7 +428,7 @@ getUriFromService (
return NULL;
}
- DEBUG ((DEBUG_INFO, "libredfish: getUriFromService(): %a\n", url));
+ DEBUG ((DEBUG_MANAGEABILITY, "libredfish: getUriFromService(): %a\n", url));
//
// Step 1: Create HTTP request message with 4 headers:
@@ -587,7 +587,7 @@ patchUriFromService (
return NULL;
}
- DEBUG ((DEBUG_INFO, "libredfish: patchUriFromService(): %a\n", url));
+ DEBUG ((DEBUG_MANAGEABILITY, "libredfish: patchUriFromService(): %a\n", url));
//
// Step 1: Create HTTP request message with 4 headers:
@@ -660,7 +660,7 @@ patchUriFromService (
ret = NULL;
goto ON_EXIT;
} else if (Status == EFI_UNSUPPORTED) {
- DEBUG ((DEBUG_INFO, "No content coding for %a! Use raw data instead.\n", HTTP_CONTENT_ENCODING_GZIP));
+ DEBUG ((DEBUG_MANAGEABILITY, "No content coding for %a! Use raw data instead.\n", HTTP_CONTENT_ENCODING_GZIP));
Status = HttpIoSetHeader (HttpIoHeader, "Content-Encoding", HTTP_CONTENT_ENCODING_IDENTITY);
ASSERT_EFI_ERROR (Status);
} else {
@@ -769,7 +769,7 @@ postUriFromService (
return NULL;
}
- DEBUG ((DEBUG_INFO, "libredfish: postUriFromService(): %a\n", url));
+ DEBUG ((DEBUG_MANAGEABILITY, "libredfish: postUriFromService(): %a\n", url));
if (contentLength == 0) {
contentLength = strlen (content);
@@ -954,7 +954,7 @@ deleteUriFromServiceEx (
return NULL;
}
- DEBUG ((DEBUG_INFO, "libredfish: deleteUriFromService(): %a\n", url));
+ DEBUG ((DEBUG_MANAGEABILITY, "libredfish: deleteUriFromService(): %a\n", url));
//
// Step 1: Create HTTP request message with 4 headers: