From d15d2667d58d40c0748919ac4b5771b875c0780b Mon Sep 17 00:00:00 2001 From: Abner Chang Date: Tue, 30 May 2023 15:06:13 +0800 Subject: RedfishPkg: Use DEBUG_MANAGEABILITY Use debug print level DEBUG_MANAGEABILITY in RedfishPkg. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy Reviewed-by: Nickle Wang --- RedfishPkg/PrivateLibrary/RedfishCrtLib/RedfishCrtLib.c | 2 +- RedfishPkg/PrivateLibrary/RedfishLib/RedfishLib.c | 8 ++++---- .../PrivateLibrary/RedfishLib/edk2libredfish/src/service.c | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'RedfishPkg/PrivateLibrary') 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: -- cgit v1.1