From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1097A740032 for ; Tue, 20 Feb 2024 06:41:59 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0eEmyYmntkUPkf+05Bf2WNmpuDBK+ihwTGJC38iXaj8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1708411318; v=1; b=aBTj5bqHnVs71lOELdI3OM1qppqVZ3WTtaUDc5VfBNIghfEOiBerMvnxXrozOS+vCM9fRSl7 uJn/ILZlf/Mkgou8hNi27ggSpbeO5+6ma54JgoEPO/246NmVM/mTP0WoXwMhMxl3Fm7yAVBPE/E ULSdN7WplEMUn2Na2iQW+1qM= X-Received: by 127.0.0.2 with SMTP id BzE7YY7687511xn16oBnuQ2J; Mon, 19 Feb 2024 22:41:58 -0800 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.74]) by mx.groups.io with SMTP id smtpd.web11.8098.1708411317944385317 for ; Mon, 19 Feb 2024 22:41:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UC1rKN8SaQV9CR4C2Oy0a4SiNoDvQvsKVywQAy7hGcRgE1GpLMcEk1FNpU2NOeAosJJpFm93ZplNIhvn+R1zlpU0Wtw9Z0uecBVS0kz6nNnN40PitSuK6QcWwVQtGbLMKHA7Gg33B18bH1husIi/vtzP6lkinKPckUxdBCbu4qPVME+qDn0rrfFqXRL2LcN9Mbmwv+iCrKtQhYuDfcv7kOcBDNEks10R6zQrELWl7sBND9jr/EvvFHcKmfdjL2coVN7cAk0J0fpMCSsEVyLwCpTCrQrA1/Hh1CFZDJqewdBM6Z9OhJVfECPSDwMWMrBbp4AoHIGGJ/L8B4ygQIfoag== 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=sDbUDn6Mr3krrkH9WuuGjp3fl0m8WyMYPff69bbDcjg=; b=YIpwefJS1+UfDhH6spXR6dESr01DPXUsp1Q7iPjtSUrZeyNBHsbdMt56K12FtXatugX3wn3kOadnzeUz13WJXA2LZFybaCuRe+qgIvuZpgXJtSmXSHRMnzr4AOyA0CQ60/FP4k/VCmr5WXJD2DtyZHksePJKK7NGyQq2hR5BErAop2/hq7mY0KVaFt44pRWlc+uvSXuqVK0lqhdG82utTLSdt4w7ZhjXDSJS9M/ZPJ52iOl3DVk1yI41Wa90JJwuBCTsncLneRZXQeWiLb8oN4piXA89ypo2dt1ENwgiSsdX1a/EC9rj0M29AIKRg0+FEXMVYrO8L5YDRmvL4XQLrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) X-Received: from SN6PR08CA0011.namprd08.prod.outlook.com (2603:10b6:805:66::24) by DS7PR12MB8322.namprd12.prod.outlook.com (2603:10b6:8:ed::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.19; Tue, 20 Feb 2024 06:41:54 +0000 X-Received: from SN1PEPF000252A3.namprd05.prod.outlook.com (2603:10b6:805:66:cafe::dd) by SN6PR08CA0011.outlook.office365.com (2603:10b6:805:66::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39 via Frontend Transport; Tue, 20 Feb 2024 06:41:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.118.232) by SN1PEPF000252A3.mail.protection.outlook.com (10.167.242.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Tue, 20 Feb 2024 06:41:54 +0000 X-Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 19 Feb 2024 22:41:46 -0800 X-Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 19 Feb 2024 22:41:46 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 19 Feb 2024 22:41:45 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [PATCH 5/6] RedfishPkg/RedfishDebugLib: use RedfishHttpLib Date: Tue, 20 Feb 2024 14:41:45 +0800 Message-ID: <20240220064145.28575-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000252A3:EE_|DS7PR12MB8322:EE_ X-MS-Office365-Filtering-Correlation-Id: 3adbade5-e002-43da-0b93-08dc31df0712 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: JRx2G4Z45PbLCc6rRK6uhGTkChodeHn5HX4vu2Z5MxG6yokwuVFrAslZCp226gc/EVvlxoWxvf6s50h8LXJx0E4/wgqSvwAAJhAawaeFovwE7ZwdWsxFwKARUuAVAyRxEnWBRRlvsIOVVJkNi0Fi2xx/hWfpuKHiC9gXK2yOBWgRRyGeeIXzYEPeeBxy+hCtNYXMr51XZkkutlLFt60cOPkvsRc7/uufg48RrSWaII+srGbfrJnGHIUi4y6SC0sBc7uBvaYtLoCuDPkiVxqH+Bih2ALWbDIBNGbCRGV0xmnj9YUIbAxnnKUnwTav/Lo/wAroqLTvdKhpHwzPR7EuD11lb5WWhCCPFM2po1MaJnO8Dgt+fezIZ4NfNQaL2p8NTXcYP6FjXU531aDObqpi6RPnk6almJQLgxgHUDW3+JLTXFfU7oEVMAg5mOP6fXWFXQRfusPJ5Xp1vVZD/yFy9Fgla+vPxGhvPnOZp6MCH0TwW5GHJRQBfvMFele0jYNGWWhMNaQ1z/uj18C1YOkAguG69Urt+Qm2RupFfympABHFfmTA4sEdR4OiZLgHfsMbVjxGIUmi3SbQooPz1g1DJtGXUSItjrrbO2zmA7ecCKoxnsGaSyA68/8aWE4UTCNB2iyJsoenRqHjyqBPtr+I6gMztBJNAobm5oO4RQ93ooE= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 06:41:54.4608 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3adbade5-e002-43da-0b93-08dc31df0712 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000252A3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8322 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: aupyHrM8GBsgJChddFBcDEGbx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=aBTj5bqH; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Remove RedfishLib and use RedfishHttpLib for debug printing Redfish response data. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.inf | 4 ++-- RedfishPkg/Include/Library/RedfishDebugLib.h | 2 +- RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.inf b/Redfi= shPkg/Library/RedfishDebugLib/RedfishDebugLib.inf index 048d27c6dc..d468bb213b 100644 --- a/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.inf +++ b/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.inf @@ -1,7 +1,7 @@ ## @file # INF file for Redfish debug library. # -# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserve= d. +# Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights re= served. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -32,7 +32,7 @@ DebugLib JsonLib MemoryAllocationLib - RedfishLib + RedfishHttpLib UefiLib =20 [Depex] diff --git a/RedfishPkg/Include/Library/RedfishDebugLib.h b/RedfishPkg/Incl= ude/Library/RedfishDebugLib.h index 3430cf1d14..ad7a697586 100644 --- a/RedfishPkg/Include/Library/RedfishDebugLib.h +++ b/RedfishPkg/Include/Library/RedfishDebugLib.h @@ -11,9 +11,9 @@ #define REDFISH_DEBUG_LIB_H_ =20 #include +#include #include #include -#include =20 #include =20 diff --git a/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.c b/Redfish= Pkg/Library/RedfishDebugLib/RedfishDebugLib.c index 3728f51213..8b0425b8c3 100644 --- a/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.c +++ b/RedfishPkg/Library/RedfishDebugLib/RedfishDebugLib.c @@ -13,6 +13,7 @@ #include #include #include +#include #include =20 #ifndef IS_EMPTY_STRING --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115630): https://edk2.groups.io/g/devel/message/115630 Mute This Topic: https://groups.io/mt/104463408/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-