From nobody Mon Sep 16 19:39:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101445+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1679321180379292.1637659581037; Mon, 20 Mar 2023 07:06:20 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nTcaYY1788612xqC9WZuhqXz; Mon, 20 Mar 2023 07:06:20 -0700 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.43]) by mx.groups.io with SMTP id smtpd.web10.14868.1679321179034094316 for ; Mon, 20 Mar 2023 07:06:19 -0700 X-Received: from DB6P192CA0007.EURP192.PROD.OUTLOOK.COM (2603:10a6:4:b8::17) by AM8PR08MB5649.eurprd08.prod.outlook.com (2603:10a6:20b:1dd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 14:06:11 +0000 X-Received: from DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:b8:cafe::ce) by DB6P192CA0007.outlook.office365.com (2603:10a6:4:b8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24 via Frontend Transport; Mon, 20 Mar 2023 14:06:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+101445+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT010.mail.protection.outlook.com (100.127.142.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.15 via Frontend Transport; Mon, 20 Mar 2023 14:06:11 +0000 X-Received: ("Tessian outbound cfb430c87a1e:v135"); Mon, 20 Mar 2023 14:06:11 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1ab9294df2e26119 X-CR-MTA-TID: 64aa7808 X-Received: from d432a181079b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7DF6DE3F-C82B-415C-B691-89CD99CA1698.1; Mon, 20 Mar 2023 14:06:04 +0000 X-Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d432a181079b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 20 Mar 2023 14:06:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EH/tlTHmuuZF4EUgwc/lLQSqExQbgiDm89Pt7lVubDFrgkCP/8Bd5VPHWxeFvZDkl8uCr4IrcTSyoPl2gWSChrbB5kjuvizCLOkn+ke46Sk8faQh39cNVY/GC8qSLxCCIN+gcjpl4ePfxd0rM/jufNhCwXazuTProI7/JoBMAfbFzO7rSIEMMi5rdNL+SHecnhVcpjQUBTLUcl9jcKqieOTn+u9SePQeK4rzm8se+95UkZeB/eDkA0SXWMYltVRWEirfKc5e3EIELXbcOzRImL15umhKt/gT4d/+nJFTei1TyB5gE0Q+WJuLcoWA2zqlOM+QHbrIeIaIA8wUNxausQ== 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=oAbo7akdRtqoiPB55NeiDvQGeZ/58FjJN+OsYs9xVto=; b=SRtEWAVtcbN9umUIdXJxdiB7f4W/KBgEpoXcMJXOIbnQiNJcIOsebF7ztIH4EFoUcfRjsYGebXfrTL+597KpWI/SkE7jJo8Vb5Bubp3HHYjJlcVmR6XjESoctQ8mINWiV7YJ+RU+AVVLpMsUw9KTcDpF/W/ugKGWo3drEKiQz0KEB4Cy6JTCDuWGt2/NOLLy4KPsyhgeH1p6KFQgTdh40e2/QjRlGQpqoQ087eU4PQzWsW8uK1HJZtvtmaMD5v/SDamMpPp1mdPpSFG7K9/Quk63R6MZmzAy+NKBzuWVTCCATTH3kMYNe513lITD1eFa876NEAjWSnffGCek+G9PnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none X-Received: from AM6PR10CA0059.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::36) by DBBPR08MB6202.eurprd08.prod.outlook.com (2603:10a6:10:209::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37; Mon, 20 Mar 2023 14:06:01 +0000 X-Received: from AM7EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:80:cafe::d1) by AM6PR10CA0059.outlook.office365.com (2603:10a6:209:80::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.37 via Frontend Transport; Mon, 20 Mar 2023 14:06:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C X-Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT032.mail.protection.outlook.com (100.127.140.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6222.15 via Frontend Transport; Mon, 20 Mar 2023 14:06:01 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 20 Mar 2023 14:05:59 +0000 X-Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Mon, 20 Mar 2023 14:05:58 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , Subject: [edk2-devel] [PATCH v1 1/4] DynamicTablesPkg: Reduce log output from TableHelperLib Date: Mon, 20 Mar 2023 14:05:54 +0000 Message-ID: <20230320140557.40348-2-sami.mujawar@arm.com> In-Reply-To: <20230320140557.40348-1-sami.mujawar@arm.com> References: <20230320140557.40348-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT032:EE_|DBBPR08MB6202:EE_|DBAEUR03FT010:EE_|AM8PR08MB5649:EE_ X-MS-Office365-Filtering-Correlation-Id: f4dfc1d3-180a-4b10-b67d-08db294c427d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: YJcDEfsJwCEBQifjsl1UAoUuX2AYT5tyWKfxzOAJrZBvf31giM5xlTEdPjnwFIzq2ltbj2r/W2v3PbM0mNXutRKLHUFeAOcuXrYWC5H5fwH53ju1VzhLuSqlfwU0obaKBVhbvfFQij8ryDIjaVSdGafaWQ0KnU4Xs1+jMqBSEHPgLXJdPVexhTsiYaMZ2f+J+9gNcmCCLyJmcyi7YbV454GjRObJsEFHDwnNUnNKBgYbOYuV7w/Fgf5YReLhnuysQekww1M4RdM5zD/Ub2WUMVkbf3Xal5+CwmVTCvsL1eLV7TGUtEambUObQatFNzrgbouwyhZ+Lk4wTgNHK/AsoWu78iTGAMAFAyhbl99cjyooo90uTisBEHn1rKug/SnXuAE0Qj7/auFgvkHBh+IhNv/4A8QTES2fZrm1AIgdCjqfc8wlQpdtQsz4iYq782qOtgdZjC+qL81o0qUREIcSUOLtpknXWw1RU+bdlhl5QOgKXwwhCpwUrkth8WmKVEx6EKw6VKjP/CODzcwOMV+Spep3KfUXRzOdUIypkABX4gjou7+2NmWNlVa2/++DAF37BNla95v1k72MldIbVjw1pvwcRey/S82BvuFfOr+3YpPYvh3d83Ih2xTGt+ewUjo5uKNEYvdMOChhKgCNAIbtNBKku+yKEQIEXN4s9oE5ENRUOm+Ei05fnaNHzWa3NyDtMFcZvmu+QWtneG+aCUb0rODBsLRjt3Vqvid9J8Z5Vac= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(396003)(136003)(39860400002)(346002)(376002)(451199018)(36840700001)(40470700004)(46966006)(8936002)(5660300002)(44832011)(36860700001)(41300700001)(82310400005)(86362001)(356005)(40480700001)(36756003)(40460700003)(82740400003)(81166007)(2906002)(4326008)(47076005)(336012)(83380400001)(478600001)(6666004)(426003)(7696005)(2616005)(186003)(1076003)(26005)(54906003)(316002)(8676002)(70586007)(6916009)(70206006)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6202 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: bc024961-c317-4b48-143f-08db294c3c8a X-Microsoft-Antispam-Message-Info: HiAap67jo2RnfHg5PsZLdFR4UZ1cnPdWUXfXW0JrNeyYdn5eSy2e1rQmXU5FHKmGGJS1HlSt4fNChMhjuLkrOP1e0qiGqpqE3cbiy09l4GHcqjRETvuqMgbSenQoESCE471fu1WZBiQyx+UcntezCdW/F05M6+Uj/UA+vO7m/iP3CBwq98jRFJBL3HvLyfcDn+RlZILn61wsOBHxxF+55gjJKFdGIPou8V4de2qkZsnqGmBGflR1MlYC/j9jpSh2G5TjiZt8ELshjYTUxnlCJIruQxuae0uH9zUTxJq1GA/Y66QPfj3/wIpnzA4775hR/oO2qlq/bbeICIeuC97miuUJv8cmvgJ3IkDdch7IUSgdoEylmnm3TvmJKRmHSQ+scCbFHG1GhMlm3VCaHDigR3/fc9BfCk5PspgiphqgP2vpNbwWN4HSZeBFcfmiAOq8GZJAz2MY5eKkS6vtTTWlzjjCW2tWh1ncFdeiSPuPoTfyE38dpPFj1nbYLAl2GdU7tYi7F0UEQ2m/VHaYpWNRk0uq+XWSHC1ijvgyhycqtuhaD2BLFNRZizWrS8H6WfkpYuih0yIpfVFtlvpqyCwDX4+QzjZ9LDvCUWzDXq+8H30WAerXwvOzAnqladAIjj5Y8v5hoovgESYwnwkyGGBPIP7r8QLSPGwMAHiql/eRa/gUmZdyHj1ZADHEY6jaQznyy5deFz7OUDo3+U+4CZyrsQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2023 14:06:11.2689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4dfc1d3-180a-4b10-b67d-08db294c427d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT010.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR08MB5649 Precedence: Bulk List-Unsubscribe: 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,sami.mujawar@arm.com X-Gm-Message-State: g1EKzEFdyK5lPLHLux730aD5x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679321180; bh=qiK4h0LAt4GcahjXtwwWIhZzdeX3UQqv+2leKZLWlVM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=gQ2fm9qHxqcpO6pG5cM+2RRLXK955rFYlj00Eui0Ftr+M3eebGGCJZEzSuFlExePhGd N9ng1Jihfd7rScwDQVOZydy1N6tqc5IUyLQmYvCajRE86dXMjZN/uxPMNGU9smrauaHdH YEfmg0/5a5uNISWYORz6eZDJv0YsfdFOj5E= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679321182424100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Reduce the log output from Configuration Manager Object Parser in TableHelperLib by enabling the logs only if DEBUG_INFO is enabled. Signed-off-by: Sami Mujawar --- DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectP= arser.c | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationMa= nagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Config= urationManagerObjectParser.c index 5e4b88e8cc754ea72157ea4a0c6d0f5b9eae2495..99d6032510a5e912c9189df82c4= d2b4398458d2d 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c @@ -1,7 +1,7 @@ /** @file Configuration Manager Object parser. =20 - Copyright (c) 2021 - 2022, ARM Limited. All rights reserved.
+ Copyright (c) 2021 - 2023, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -787,7 +787,7 @@ PrintOemId ( ) { DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, (Format !=3D NULL) ? Format : "%C%C%C%C%C%C", Ptr[0], Ptr[1], @@ -855,7 +855,7 @@ PrintCmObjDesc ( *RemainingSize -=3D Parser[Index].Length; if (*RemainingSize < 0) { DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, "\nERROR: %a: Buffer overrun\n", Parser[Index].NameStr )); @@ -865,11 +865,11 @@ PrintCmObjDesc ( =20 // Indentation for (IndentIndex =3D 0; IndentIndex < IndentLevel; IndentIndex++) { - DEBUG ((DEBUG_ERROR, " ")); + DEBUG ((DEBUG_INFO, " ")); } =20 DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, "%-*a :", OUTPUT_FIELD_COLUMN_WIDTH - 2 * IndentLevel, Parser[Index].NameStr @@ -879,20 +879,20 @@ PrintCmObjDesc ( } else if (Parser[Index].Format !=3D NULL) { switch (Parser[Index].Length) { case 1: - DEBUG ((DEBUG_ERROR, Parser[Index].Format, *(UINT8 *)Data)); + DEBUG ((DEBUG_INFO, Parser[Index].Format, *(UINT8 *)Data)); break; case 2: - DEBUG ((DEBUG_ERROR, Parser[Index].Format, *(UINT16 *)Data)); + DEBUG ((DEBUG_INFO, Parser[Index].Format, *(UINT16 *)Data)); break; case 4: - DEBUG ((DEBUG_ERROR, Parser[Index].Format, *(UINT32 *)Data)); + DEBUG ((DEBUG_INFO, Parser[Index].Format, *(UINT32 *)Data)); break; case 8: - DEBUG ((DEBUG_ERROR, Parser[Index].Format, ReadUnaligned64 (Data= ))); + DEBUG ((DEBUG_INFO, Parser[Index].Format, ReadUnaligned64 (Data)= )); break; default: DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, "\nERROR: %a: CANNOT PARSE THIS FIELD, Field Length =3D %d\n", Parser[Index].NameStr, Parser[Index].Length @@ -901,7 +901,7 @@ PrintCmObjDesc ( } else if (Parser[Index].SubObjParser !=3D NULL) { SubStructSize =3D Parser[Index].Length; =20 - DEBUG ((DEBUG_ERROR, "\n")); + DEBUG ((DEBUG_INFO, "\n")); PrintCmObjDesc ( Data, Parser[Index].SubObjParser, @@ -912,14 +912,14 @@ PrintCmObjDesc ( } else { ASSERT (0); DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, "\nERROR: %a: CANNOT PARSE THIS FIELD, Field Length =3D %d\n", Parser[Index].NameStr, Parser[Index].Length )); } =20 - DEBUG ((DEBUG_ERROR, "\n")); + DEBUG ((DEBUG_INFO, "\n")); Data =3D (UINT8 *)Data + Parser[Index].Length; } // for } @@ -978,7 +978,7 @@ ParseCmObjDesc ( =20 for (ObjIndex =3D 0; ObjIndex < ObjectCount; ObjIndex++) { DEBUG (( - DEBUG_ERROR, + DEBUG_INFO, "\n%-*a [%d/%d]:\n", OUTPUT_FIELD_COLUMN_WIDTH, ParserArray->ObjectName, --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=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 (#101445): https://edk2.groups.io/g/devel/message/101445 Mute This Topic: https://groups.io/mt/97731605/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-