From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.45]) by mx.groups.io with SMTP id smtpd.web11.4699.1685432554121779349 for ; Tue, 30 May 2023 00:42:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=oUsDlEOL; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.220.45, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BvjD7xVnD4KMlsj6IFfUhBlBVbe+BXzsNDLqFrAOUBkLGyvEO0AIU3TBDfxCVUkufgmj5rDkSHfnShNBRhoDWbjnHDzIf4xY6qqjkGj7lJ0ad7j+qWqy20xD9EwqgDW/9nSjlluCDyucC8N4rowD+FQ2g8uRj1PMmwnLftPYz1zNcZ7K3vhn1pp9PHKq3GoYFW0ztATUKT0fo6R9GQCHXdZqZtIVKHItkCtc/JaTImORwmxrxDDgNeH5frMTQPeKV90jAS8UNLzZ/DIB7swOtj6f1wGJ/DFD5x1nUIA2I1iHijekYBaKKYY4Q9fBSH8j4u4kkiE6djHQyaE7EX92+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Aa7/ArF+CcwMmlX9MLVilnPtOkwUTm0UliYssbSkbkQ=; b=FDIwT3Vr0U0CRJyrwpQ3sXc/c9FdHI1Z6ZIurIGbCZ0IZNPMlSh1XnWV2X/Ch5ed3kHkPm7dfXoHaJRCpr7wF1BNdR8CLdEr/rRnTfuCwxRn3yypPnDcuTnNpPrWx6i3bLEFdxf1Wr9w8vk6sXKib8IVP7UKWcoruJZCwv2mXky5UROdAw37/Pxek1WqBCrIexvryzXhkR8xaxbEa5+FoMnLDgSZNwCbCui9eXebFn/f6AaHdgTnpoYRMxs1L6ONTwaRYf9GIexOMI4FgbGvgSHkvkftYYw72YfAjsVpIyhU7CUpqUqiY3Wc8xAlpSRuws5gzBSRNxo1x9/D7FFhqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Aa7/ArF+CcwMmlX9MLVilnPtOkwUTm0UliYssbSkbkQ=; b=oUsDlEOLnLfA00DsbJ4B5YqOp/8LUZmrWVtQr75ia/VGAmuI4rUIqQ9vT939cBrq3aHR83g2kCDZRx0MZuh12Ds21f2vO9LW4N5OQD56ltV6WDjwEuDtZzcudg+zi1ABr3D47vtAr43KkIj5Aeo0I60nsbUSM6hlh4r4oPxe0zk= Received: from DS7PR05CA0065.namprd05.prod.outlook.com (2603:10b6:8:57::10) by BL0PR12MB5011.namprd12.prod.outlook.com (2603:10b6:208:1c9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 07:42:29 +0000 Received: from DM6NAM11FT077.eop-nam11.prod.protection.outlook.com (2603:10b6:8:57:cafe::8d) by DS7PR05CA0065.outlook.office365.com (2603:10b6:8:57::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.21 via Frontend Transport; Tue, 30 May 2023 07:42:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT077.mail.protection.outlook.com (10.13.173.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6455.22 via Frontend Transport; Tue, 30 May 2023 07:42:29 +0000 Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 30 May 2023 02:42:22 -0500 From: "Chang, Abner" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-redfish-client][PATCH 2/2] RedfishClientPkg: Use DEBUG_MANAGEABILITY Date: Tue, 30 May 2023 15:42:09 +0800 Message-ID: <20230530074210.1975-2-abner.chang@amd.com> X-Mailer: git-send-email 2.37.1.windows.1 In-Reply-To: <20230530074210.1975-1-abner.chang@amd.com> References: <20230530074210.1975-1-abner.chang@amd.com> MIME-Version: 1.0 Return-Path: Abner.Chang@amd.com X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT077:EE_|BL0PR12MB5011:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e7c2611-3ae1-421a-11db-08db60e16baf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Su/ZOolmE7Vx81ZIjq50VHxIrVGKXTYrYt6MJCtr1I3kBPohnwBOUtiwdsECJmOb+4Sv7UfW0yiLbS0SorQ/hq7gUZ9Q6CzsCla5yCIr/TJulfHIbpOWQw7IMbOZTmVRIYSeTUKIa+npoEp0LjyIMrBUR3CCUbZ2SfF9HK3VobVHpmE0uo5WjOvJ3I0mDhJd7J2hhbtB2KJhpoHiBsPhKZuQ9vjn4koq0cVEl6TtpdvI0ZsMz9yegFDQeuAM9WtKkCRbl6Is3niYsaI9jTjzaaZgbdAiPGY5PlCL8bh+1HNnOZ1s4Vc4i0Vdg50U+gtHv9oY0oabmtAnXo/Q/JghdGOX+MEoc+x9SsPUX4MQCARzptFadO2OO5ryh/+iUQpeVusZRWVlCffgwQvpJJ4BtEFA+aYOqWTmdcg+gvnHH02WNUw/IdQ/pjNR0pzbe44+ilHkFeRvBgnJ8s4k7L8AWti9ZlDMtNvPpwdMnv6dWA5wLPs6I5ZUEBtHkzVHcrGBVnxD7FsjAogVsz/Bt9e5vwpRTiNwE9d6w26vE2WK+nuEBEmWE5yypYeTbIifNueOoB+wvdyL7zQu21/H0y7SdKJqZ85v1YhJQkpy6Rzv0cMY0640LGjNtMR1KPlI27p9sVVvS4MBkpStMeD7BzzA0b4TqaPxtJn9xwNdYbRSSqFWCBLL63FMKA0dW79CBduxAlJa75J8LCYj9FCaAxqFR5RlXzxylo9KxQxnd0rDt6YGQYc0TJ5qU1MVBoYKkYh69ZdhNO3IbII6QBWIwGalw== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(346002)(396003)(376002)(451199021)(36840700001)(46966006)(40470700004)(54906003)(19627235002)(478600001)(40460700003)(70586007)(8936002)(8676002)(5660300002)(2876002)(30864003)(36756003)(2906002)(86362001)(82310400005)(6916009)(70206006)(4326008)(82740400003)(316002)(356005)(81166007)(40480700001)(41300700001)(2616005)(426003)(336012)(16526019)(186003)(36860700001)(26005)(1076003)(47076005)(7696005)(6666004)(83380400001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 07:42:29.2819 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e7c2611-3ae1-421a-11db-08db60e16baf X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT077.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB5011 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang Use debug print level DEBUG_MANAGEABILITY in RedfishClientPkg. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy --- RedfishClientPkg/Include/RedfishBase.h | 2 +- .../Features/Bios/v1_0_9/Common/BiosCommon.c | 10 ++++---- .../Features/Bios/v1_0_9/Dxe/BiosDxe.c | 2 +- .../v1_5_0/Common/ComputerSystemCommon.c | 8 +++---- .../v1_5_0/Dxe/ComputerSystemDxe.c | 2 +- .../ComputerSystemCollectionDxe.c | 2 +- .../Memory/V1_7_1/Common/MemoryCommon.c | 8 +++---- .../Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 2 +- .../MemoryCollectionDxe/MemoryCollectionDxe.c | 2 +- .../EdkIIRedfishResourceConfigLib.c | 2 +- .../RedfishFeatureUtilityLib.c | 24 +++++++++---------- .../PrivateLibrary/RedfishLib/RedfishLib.c | 8 +++---- .../RedfishLib/edk2libredfish/src/service.c | 18 +++++++------- .../RedfishConfigLangMapDxe.c | 8 +++---- .../RedfishETagDxe/RedfishETagDxe.c | 8 +++---- 15 files changed, 53 insertions(+), 53 deletions(-) diff --git a/RedfishClientPkg/Include/RedfishBase.h b/RedfishClientPkg/Incl= ude/RedfishBase.h index 1abe9517ef..d58d7579ce 100644 --- a/RedfishClientPkg/Include/RedfishBase.h +++ b/RedfishClientPkg/Include/RedfishBase.h @@ -11,7 +11,7 @@ #define EFI_REDFISH_BASE_H_ =20 #define IS_EMPTY_STRING(a) ((a) =3D=3D NULL || (a)[0] =3D=3D '\0') -#define REDFISH_DEBUG_TRACE DEBUG_INFO +#define REDFISH_DEBUG_TRACE DEBUG_MANAGEABILITY =20 /// /// This GUID is used for an EFI Variable that stores the Redfish data. diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/Re= dfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c index 82a3d46548..8442608813 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c @@ -65,7 +65,7 @@ RedfishConsumeResourceCommon ( // // No change // - DEBUG ((DEBUG_INFO, "%a, ETAG: %s has no change, ignore consume action= \n", __func__, Private->Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, ETAG: %s has no change, ignore consu= me action\n", __func__, Private->Uri)); Status =3D EFI_ALREADY_STARTED; goto ON_RELEASE; } @@ -352,7 +352,7 @@ ProvisioningBiosResources ( EdkIIRedfishResourceSetConfigureLang (&UnifiedConfigureLangList); =20 for (Index =3D 0; Index < UnifiedConfigureLangList.Count; Index++) { - DEBUG ((DEBUG_INFO, "[%d] create Bios resource from: %s\n", UnifiedCon= figureLangList.List[Index].Index, UnifiedConfigureLangList.List[Index].Conf= igureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "[%d] create Bios resource from: %s\n", U= nifiedConfigureLangList.List[Index].Index, UnifiedConfigureLangList.List[In= dex].ConfigureLang)); ProvisioningBiosResource (Private, UnifiedConfigureLangList.List[Index= ].Index, UnifiedConfigureLangList.List[Index].ConfigureLang); FreePool (UnifiedConfigureLangList.List[Index].ConfigureLang); } @@ -498,9 +498,9 @@ RedfishCheckResourceCommon ( continue; } =20 - DEBUG ((DEBUG_INFO, "%a, [%d] check attribute for: %s\n", __func__, In= dex, Property)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, [%d] check attribute for: %s\n", __f= unc__, Index, Property)); if (!MatchPropertyWithJsonContext (Property, Json)) { - DEBUG ((DEBUG_INFO, "%a, property is missing: %s\n", __func__, Prope= rty)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, property is missing: %s\n", __func= __, Property)); Status =3D EFI_NOT_FOUND; } } @@ -692,7 +692,7 @@ HandleResource ( Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { - DEBUG ((DEBUG_INFO, "%a, \"%s\" is not handled by us\n", __func__,= Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, \"%s\" is not handled by us\n", = __func__, Uri)); return EFI_SUCCESS; } =20 diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c b/RedfishC= lientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c index bbfbe7a873..623a9af8f6 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Dxe/BiosDxe.c @@ -46,7 +46,7 @@ RedfishResourceProvisioningResource ( return EFI_INVALID_PARAMETER; } =20 - DEBUG ((DEBUG_INFO, "%a, provisioning in %s mode\n", __func__, (PostMode= ? L"POST" : L"PATCH"))); + DEBUG ((DEBUG_MANAGEABILITY, "%a, provisioning in %s mode\n", __func__, = (PostMode ? L"POST" : L"PATCH"))); =20 Private =3D REDFISH_RESOURCE_COMMON_PRIVATE_DATA_FROM_RESOURCE_PROTOCOL = (This); =20 diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/Compute= rSystemCommon.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/Co= mputerSystemCommon.c index 168d62e3d7..7ed1bd55ea 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/ComputerSystem= Common.c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Common/ComputerSystem= Common.c @@ -64,7 +64,7 @@ RedfishConsumeResourceCommon ( // // No change // - DEBUG ((DEBUG_INFO, "%a, ETAG: %s has no change, ignore consume action= \n", __func__, Private->Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, ETAG: %s has no change, ignore consu= me action\n", __func__, Private->Uri)); Status =3D EFI_ALREADY_STARTED; goto ON_RELEASE; } @@ -1324,7 +1324,7 @@ ProvisioningComputerSystemResources ( EdkIIRedfishResourceSetConfigureLang (&UnifiedConfigureLangList); =20 for (Index =3D 0; Index < UnifiedConfigureLangList.Count; Index++) { - DEBUG ((DEBUG_INFO, "[%d] create ComputerSystem resource from: %s\n", = UnifiedConfigureLangList.List[Index].Index, UnifiedConfigureLangList.List[I= ndex].ConfigureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "[%d] create ComputerSystem resource from= : %s\n", UnifiedConfigureLangList.List[Index].Index, UnifiedConfigureLangLi= st.List[Index].ConfigureLang)); ProvisioningComputerSystemResource (Private, UnifiedConfigureLangList.= List[Index].Index, UnifiedConfigureLangList.List[Index].ConfigureLang); FreePool (UnifiedConfigureLangList.List[Index].ConfigureLang); } @@ -1470,9 +1470,9 @@ RedfishCheckResourceCommon ( continue; } =20 - DEBUG ((DEBUG_INFO, "%a, [%d] check attribute for: %s\n", __func__, In= dex, Property)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, [%d] check attribute for: %s\n", __f= unc__, Index, Property)); if (!MatchPropertyWithJsonContext (Property, Json)) { - DEBUG ((DEBUG_INFO, "%a, property is missing: %s\n", __func__, Prope= rty)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, property is missing: %s\n", __func= __, Property)); Status =3D EFI_NOT_FOUND; } } diff --git a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSy= stemDxe.c b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSys= temDxe.c index 64480a2199..49d065c98b 100644 --- a/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c +++ b/RedfishClientPkg/Features/ComputerSystem/v1_5_0/Dxe/ComputerSystemDxe= .c @@ -40,7 +40,7 @@ RedfishResourceProvisioningResource ( return EFI_INVALID_PARAMETER; } =20 - DEBUG ((DEBUG_INFO, "%a, provisioning in %s mode\n", __func__, (PostMode= ? L"POST" : L"PATCH"))); + DEBUG ((DEBUG_MANAGEABILITY, "%a, provisioning in %s mode\n", __func__, = (PostMode ? L"POST" : L"PATCH"))); =20 Private =3D REDFISH_RESOURCE_COMMON_PRIVATE_DATA_FROM_RESOURCE_PROTOCOL = (This); =20 diff --git a/RedfishClientPkg/Features/ComputerSystemCollectionDxe/Computer= SystemCollectionDxe.c b/RedfishClientPkg/Features/ComputerSystemCollectionD= xe/ComputerSystemCollectionDxe.c index cd73542303..3ba2529c9c 100644 --- a/RedfishClientPkg/Features/ComputerSystemCollectionDxe/ComputerSystemC= ollectionDxe.c +++ b/RedfishClientPkg/Features/ComputerSystemCollectionDxe/ComputerSystemC= ollectionDxe.c @@ -50,7 +50,7 @@ HandleResource ( Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { - DEBUG ((DEBUG_INFO, "%a, \"%s\" is not handled by us\n", __func__,= Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, \"%s\" is not handled by us\n", = __func__, Uri)); return EFI_SUCCESS; } =20 diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c = b/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c index ad212cdc54..b743403623 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Common/MemoryCommon.c @@ -64,7 +64,7 @@ RedfishConsumeResourceCommon ( // // No change // - DEBUG ((DEBUG_INFO, "%a, ETAG: %s has no change, ignore consume action= \n", __func__, Private->Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, ETAG: %s has no change, ignore consu= me action\n", __func__, Private->Uri)); Status =3D EFI_ALREADY_STARTED; goto ON_RELEASE; } @@ -2240,7 +2240,7 @@ ProvisioningMemoryResources ( EdkIIRedfishResourceSetConfigureLang (&UnifiedConfigureLangList); =20 for (Index =3D 0; Index < UnifiedConfigureLangList.Count; Index++) { - DEBUG ((DEBUG_INFO, "[%d] create Memory resource from: %s\n", UnifiedC= onfigureLangList.List[Index].Index, UnifiedConfigureLangList.List[Index].Co= nfigureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "[%d] create Memory resource from: %s\n",= UnifiedConfigureLangList.List[Index].Index, UnifiedConfigureLangList.List[= Index].ConfigureLang)); ProvisioningMemoryResource (Private, UnifiedConfigureLangList.List[Ind= ex].Index, UnifiedConfigureLangList.List[Index].ConfigureLang); FreePool (UnifiedConfigureLangList.List[Index].ConfigureLang); } @@ -2386,9 +2386,9 @@ RedfishCheckResourceCommon ( continue; } =20 - DEBUG ((DEBUG_INFO, "%a, [%d] check attribute for: %s\n", __func__, In= dex, Property)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, [%d] check attribute for: %s\n", __f= unc__, Index, Property)); if (!MatchPropertyWithJsonContext (Property, Json)) { - DEBUG ((DEBUG_INFO, "%a, property is missing: %s\n", __func__, Prope= rty)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, property is missing: %s\n", __func= __, Property)); Status =3D EFI_NOT_FOUND; } } diff --git a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c b/Redf= ishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c index 55e091ac8d..7878411849 100644 --- a/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c +++ b/RedfishClientPkg/Features/Memory/V1_7_1/Dxe/MemoryDxe.c @@ -40,7 +40,7 @@ RedfishResourceProvisioningResource ( return EFI_INVALID_PARAMETER; } =20 - DEBUG ((DEBUG_INFO, "%a, provisioning in %s mode\n", __func__, (PostMode= ? L"POST" : L"PATCH"))); + DEBUG ((DEBUG_MANAGEABILITY, "%a, provisioning in %s mode\n", __func__, = (PostMode ? L"POST" : L"PATCH"))); =20 Private =3D REDFISH_RESOURCE_COMMON_PRIVATE_DATA_FROM_RESOURCE_PROTOCOL = (This); =20 diff --git a/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollection= Dxe.c b/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c index b594f726d0..b94ff2e865 100644 --- a/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c +++ b/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c @@ -50,7 +50,7 @@ HandleResource ( Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { - DEBUG ((DEBUG_INFO, "%a, \"%s\" is not handled by us\n", __func__,= Uri)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, \"%s\" is not handled by us\n", = __func__, Uri)); return EFI_SUCCESS; } =20 diff --git a/RedfishClientPkg/Library/EdkIIRedfishResourceConfigLib/EdkIIRe= dfishResourceConfigLib.c b/RedfishClientPkg/Library/EdkIIRedfishResourceCon= figLib/EdkIIRedfishResourceConfigLib.c index b5ef6e89b3..e7bd745e8b 100644 --- a/RedfishClientPkg/Library/EdkIIRedfishResourceConfigLib/EdkIIRedfishRe= sourceConfigLib.c +++ b/RedfishClientPkg/Library/EdkIIRedfishResourceConfigLib/EdkIIRedfishRe= sourceConfigLib.c @@ -129,7 +129,7 @@ GetSupportedSchemaVersion ( return Status; } =20 - DEBUG ((DEBUG_INFO, "Supported schema: %a\n", SupportSchema)); + DEBUG ((DEBUG_MANAGEABILITY, "Supported schema: %a\n", SupportSchema)); =20 Index =3D 0; Found =3D FALSE; diff --git a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatu= reUtilityLib.c b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishF= eatureUtilityLib.c index 00b6d70fed..1c9dec7e67 100644 --- a/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtili= tyLib.c +++ b/RedfishClientPkg/Library/RedfishFeatureUtilityLib/RedfishFeatureUtili= tyLib.c @@ -316,7 +316,7 @@ ApplyFeatureSettingsStringType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s from %a to %a\n", __func__, = Schema, Version, ConfigureLang, RedfishValue.Value.Buffer, FeatureValue)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from %a to %a\n", _= _func__, Schema, Version, ConfigureLang, RedfishValue.Value.Buffer, Feature= Value)); =20 FreePool (RedfishValue.Value.Buffer); RedfishValue.Value.Buffer =3D FeatureValue; @@ -377,7 +377,7 @@ ApplyFeatureSettingsNumericType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s from 0x%x to 0x%x\n", __func= __, Schema, Version, ConfigureLang, RedfishValue.Value.Integer, FeatureValu= e)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from 0x%x to 0x%x\n= ", __func__, Schema, Version, ConfigureLang, RedfishValue.Value.Integer, Fe= atureValue)); =20 RedfishValue.Value.Integer =3D (INT64)FeatureValue; =20 @@ -437,7 +437,7 @@ ApplyFeatureSettingsBooleanType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s from %a to %a\n", __func__, = Schema, Version, ConfigureLang, (RedfishValue.Value.Boolean ? "True" : "Fal= se"), (FeatureValue ? "True" : "False"))); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from %a to %a\n", _= _func__, Schema, Version, ConfigureLang, (RedfishValue.Value.Boolean ? "Tru= e" : "False"), (FeatureValue ? "True" : "False"))); =20 RedfishValue.Value.Boolean =3D FeatureValue; =20 @@ -556,7 +556,7 @@ ApplyFeatureSettingsVagueType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s from %a to %a\n", __func= __, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Buffer, CurrentVa= gueValuePtr->Value->DataValue.CharPtr)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from %a to %a\n= ", __func__, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Buffer, = CurrentVagueValuePtr->Value->DataValue.CharPtr)); FreePool (RedfishValue.Value.Buffer); RedfishValue.Value.Buffer =3D CurrentVagueValuePtr->Value->DataV= alue.CharPtr; Status =3D RedfishPlatformConfigSetValue (Sch= ema, Version, ConfigureKeyLang, RedfishValue); @@ -564,7 +564,7 @@ ApplyFeatureSettingsVagueType ( DEBUG ((DEBUG_ERROR, "%a, apply %a to %a failed: %r\n", __func= __, ConfigureKeyLang, CurrentVagueValuePtr->Value->DataValue.CharPtr, Statu= s)); } } else { - DEBUG ((DEBUG_INFO, "%a, %a.%a %s value is: %a\n", __func__, Sch= ema, Version, ConfigureKeyLang, RedfishValue.Value.Buffer, Status)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a %s value is: %a\n", __fu= nc__, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Buffer, Status)= ); } } else if (PropertyDatatype =3D=3D REDFISH_VALUE_TYPE_BOOLEAN) { // @@ -575,7 +575,7 @@ ApplyFeatureSettingsVagueType ( // Apply settings from redfish // DEBUG (( - DEBUG_INFO, + DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from %a to %a\n", __func__, Schema, @@ -591,7 +591,7 @@ ApplyFeatureSettingsVagueType ( DEBUG ((DEBUG_ERROR, "%a, apply %s to %a failed: %r\n", __func= __, ConfigureKeyLang, (*CurrentVagueValuePtr->Value->DataValue.BoolPtr ? "T= rue" : "False"), Status)); } } else { - DEBUG ((DEBUG_INFO, "%a, %a.%a %s value is: %a\n", __func__, Sch= ema, Version, ConfigureKeyLang, (RedfishValue.Value.Boolean ? "True" : "Fal= se"), Status)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a %s value is: %a\n", __fu= nc__, Schema, Version, ConfigureKeyLang, (RedfishValue.Value.Boolean ? "Tru= e" : "False"), Status)); } } else if (PropertyDatatype =3D=3D REDFISH_VALUE_TYPE_INTEGER) { // @@ -601,7 +601,7 @@ ApplyFeatureSettingsVagueType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s from 0x%x to 0x%x\n", __= func__, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Integer, *Cur= rentVagueValuePtr->Value->DataValue.Int64Ptr)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s from 0x%x to 0x= %x\n", __func__, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Inte= ger, *CurrentVagueValuePtr->Value->DataValue.Int64Ptr)); =20 RedfishValue.Value.Integer =3D (INT64)*CurrentVagueValuePtr->Val= ue->DataValue.Int64Ptr; Status =3D RedfishPlatformConfigSetValue (Sc= hema, Version, ConfigureKeyLang, RedfishValue); @@ -609,7 +609,7 @@ ApplyFeatureSettingsVagueType ( DEBUG ((DEBUG_ERROR, "%a, apply %s to 0x%x failed: %r\n", __fu= nc__, ConfigureKeyLang, *CurrentVagueValuePtr->Value->DataValue.Int64Ptr, S= tatus)); } } else { - DEBUG ((DEBUG_INFO, "%a, %a.%a %s value is: 0x%x\n", __func__, S= chema, Version, ConfigureKeyLang, RedfishValue.Value.Integer, Status)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a %s value is: 0x%x\n", __= func__, Schema, Version, ConfigureKeyLang, RedfishValue.Value.Integer, Stat= us)); } } else { DEBUG ((DEBUG_ERROR, "%a, %a.%a %s Unsupported Redfish property da= ta type\n", __func__, Schema, Version, ConfigureLang)); @@ -744,7 +744,7 @@ ApplyFeatureSettingsStringArrayType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s for array\n", __func__, Sche= ma, Version, ConfigureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s for array\n", __fun= c__, Schema, Version, ConfigureLang)); FreeArrayTypeRedfishValue (&RedfishValue); =20 // @@ -842,7 +842,7 @@ ApplyFeatureSettingsNumericArrayType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s for array\n", __func__, Sche= ma, Version, ConfigureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s for array\n", __fun= c__, Schema, Version, ConfigureLang)); FreeArrayTypeRedfishValue (&RedfishValue); =20 // @@ -935,7 +935,7 @@ ApplyFeatureSettingsBooleanArrayType ( // // Apply settings from redfish // - DEBUG ((DEBUG_INFO, "%a, %a.%a apply %s for array\n", __func__, Sche= ma, Version, ConfigureLang)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, %a.%a apply %s for array\n", __fun= c__, Schema, Version, ConfigureLang)); FreeArrayTypeRedfishValue (&RedfishValue); =20 // diff --git a/RedfishClientPkg/PrivateLibrary/RedfishLib/RedfishLib.c b/Redf= ishClientPkg/PrivateLibrary/RedfishLib/RedfishLib.c index 87a9027c83..c00b15f6fd 100644 --- a/RedfishClientPkg/PrivateLibrary/RedfishLib/RedfishLib.c +++ b/RedfishClientPkg/PrivateLibrary/RedfishLib/RedfishLib.c @@ -764,7 +764,7 @@ RedfishDumpJsonStringFractions ( return; } =20 - DEBUG ((DEBUG_INFO, "JSON text:\n")); + DEBUG ((DEBUG_MANAGEABILITY, "JSON text:\n")); NextFraction =3D String; StrLen =3D AsciiStrLen (String); if (StrLen =3D=3D 0) { @@ -774,13 +774,13 @@ RedfishDumpJsonStringFractions ( for (Count =3D 0; Count < (StrLen / StringFractionSize); Count++) { BackupChar =3D *(NextFraction + StringFracti= onSize); *(NextFraction + StringFractionSize) =3D 0; - DEBUG ((DEBUG_INFO, "%a", NextFraction)); + DEBUG ((DEBUG_MANAGEABILITY, "%a", NextFraction)); *(NextFraction + StringFractionSize) =3D BackupChar; NextFraction +=3D StringFractionSize; } =20 if ((StrLen % StringFractionSize) !=3D 0) { - DEBUG ((DEBUG_INFO, "%a\n\n", NextFraction)); + DEBUG ((DEBUG_MANAGEABILITY, "%a\n\n", NextFraction)); } } =20 @@ -919,7 +919,7 @@ RedfishIsValidOdataType ( } } =20 - 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; } =20 diff --git a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/= service.c b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/s= ervice.c index fce28fd2f6..a38bdfbea6 100644 --- a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c +++ b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c @@ -461,7 +461,7 @@ getUriFromServiceEx ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: getUriFromServiceEx(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: getUriFromServiceEx(): %a\n", = url)); =20 // // Step 1: Create HTTP request message with 4 headers: @@ -621,7 +621,7 @@ getUriFromService ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: getUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: getUriFromService(): %a\n", ur= l)); =20 // // Step 1: Create HTTP request message with 4 headers: @@ -782,7 +782,7 @@ patchUriFromServiceEx ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: patchUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: patchUriFromService(): %a\n", = url)); =20 // // Step 1: Create HTTP request message with 4 headers: @@ -855,7 +855,7 @@ patchUriFromServiceEx ( ret =3D NULL; goto ON_EXIT; } else if (Status =3D=3D 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 i= nstead.\n", HTTP_CONTENT_ENCODING_GZIP)); Status =3D HttpIoSetHeader (HttpIoHeader, "Content-Encoding", HTTP_CON= TENT_ENCODING_IDENTITY); ASSERT_EFI_ERROR (Status); } else { @@ -965,7 +965,7 @@ patchUriFromService ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: patchUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: patchUriFromService(): %a\n", = url)); =20 // // Step 1: Create HTTP request message with 4 headers: @@ -1038,7 +1038,7 @@ patchUriFromService ( ret =3D NULL; goto ON_EXIT; } else if (Status =3D=3D 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 i= nstead.\n", HTTP_CONTENT_ENCODING_GZIP)); Status =3D HttpIoSetHeader (HttpIoHeader, "Content-Encoding", HTTP_CON= TENT_ENCODING_IDENTITY); ASSERT_EFI_ERROR (Status); } else { @@ -1149,7 +1149,7 @@ postUriFromServiceEx ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: postUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: postUriFromService(): %a\n", u= rl)); =20 if (contentLength =3D=3D 0) { contentLength =3D strlen (content); @@ -1340,7 +1340,7 @@ postUriFromService ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: postUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: postUriFromService(): %a\n", u= rl)); =20 if (contentLength =3D=3D 0) { contentLength =3D strlen (content); @@ -1522,7 +1522,7 @@ deleteUriFromService ( return NULL; } =20 - DEBUG ((DEBUG_INFO, "libredfish: deleteUriFromService(): %a\n", url)); + DEBUG ((DEBUG_MANAGEABILITY, "libredfish: deleteUriFromService(): %a\n",= url)); =20 // // Step 1: Create HTTP request message with 4 headers: diff --git a/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapD= xe.c b/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c index 2c16b78280..fbdb212c4a 100644 --- a/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c +++ b/RedfishClientPkg/RedfishConfigLangMapDxe/RedfishConfigLangMapDxe.c @@ -237,17 +237,17 @@ DumpConfigLangMapList ( } =20 if (IsListEmpty (&ConfigLangMapList->Listheader)) { - DEBUG ((DEBUG_INFO, "ConfigLangMap list is empty\n")); + DEBUG ((DEBUG_MANAGEABILITY, "ConfigLangMap list is empty\n")); return EFI_NOT_FOUND; } =20 - DEBUG ((DEBUG_INFO, "Count: %d Total Size: %d\n", ConfigLangMapList->Cou= nt, ConfigLangMapList->TotalSize)); + DEBUG ((DEBUG_MANAGEABILITY, "Count: %d Total Size: %d\n", ConfigLangMap= List->Count, ConfigLangMapList->TotalSize)); Record =3D NULL; List =3D GetFirstNode (&ConfigLangMapList->Listheader); while (!IsNull (&ConfigLangMapList->Listheader, List)) { Record =3D REDFISH_CONFIG_LANG_MAP_RECORD_FROM_LIST (List); =20 - DEBUG ((DEBUG_INFO, "ConfigLang: %s Uri: %s Size: %d\n", Record->Confi= gLang, Record->Uri, Record->Size)); + DEBUG ((DEBUG_MANAGEABILITY, "ConfigLang: %s Uri: %s Size: %d\n", Reco= rd->ConfigLang, Record->Uri, Record->Size)); =20 List =3D GetNextNode (&ConfigLangMapList->Listheader, List); } @@ -787,7 +787,7 @@ RedfishConfigLangMapDriverEntryPoint ( // Status =3D InitialConfigLangMapList (&mRedfishConfigLangMapPrivate->Conf= igLangList, mRedfishConfigLangMapPrivate->VariableName); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "%a, Initial ConfigLangMap List: %r\n", __func__, = Status)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, Initial ConfigLangMap List: %r\n", _= _func__, Status)); } =20 // diff --git a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c b/RedfishClie= ntPkg/RedfishETagDxe/RedfishETagDxe.c index 7d611048e6..60ab473fd4 100644 --- a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c +++ b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c @@ -225,17 +225,17 @@ DumpETagList ( } =20 if (IsListEmpty (&ETagList->Listheader)) { - DEBUG ((DEBUG_INFO, "ETag list is empty\n")); + DEBUG ((DEBUG_MANAGEABILITY, "ETag list is empty\n")); return EFI_NOT_FOUND; } =20 - DEBUG ((DEBUG_INFO, "Count: %d Total Size: %d\n", ETagList->Count, ETagL= ist->TotalSize)); + DEBUG ((DEBUG_MANAGEABILITY, "Count: %d Total Size: %d\n", ETagList->Cou= nt, ETagList->TotalSize)); Record =3D NULL; List =3D GetFirstNode (&ETagList->Listheader); while (!IsNull (&ETagList->Listheader, List)) { Record =3D REDFISH_ETAG_RECORD_FROM_LIST (List); =20 - DEBUG ((DEBUG_INFO, "ETag: %a Uri: %a Size: %d\n", Record->ETag, Recor= d->Uri, Record->Size)); + DEBUG ((DEBUG_MANAGEABILITY, "ETag: %a Uri: %a Size: %d\n", Record->ET= ag, Record->Uri, Record->Size)); =20 List =3D GetNextNode (&ETagList->Listheader, List); } @@ -759,7 +759,7 @@ RedfishETagDriverEntryPoint ( // Status =3D InitialETagList (&mRedfishETagPrivate->ETagList, mRedfishETag= Private->VariableName); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_INFO, "%a, Initial ETag List: %r\n", __func__, Status)); + DEBUG ((DEBUG_MANAGEABILITY, "%a, Initial ETag List: %r\n", __func__, = Status)); } =20 return EFI_SUCCESS; --=20 2.37.1.windows.1