From nobody Tue Feb 10 04:02:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43007+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1561717547; cv=none; d=zoho.com; s=zohoarc; b=HIwtDFpbah/O9y6PbGPMNsFWWkcH/20yRi11uJtIwAAROwlVTBVDgyBVbpgkVjd6a5lD+UHRF0gxArmSeA6ZxG/SX59tAoehlKp0mlf04pUesg4VMVSosY+b/TVmz5FALDwDlCMusXd9qzVbGdch4oqYil6at6RqRPP892TK5hE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561717547; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=HiRb2WltqmLsTNvWnOA9VRtJYHKKsgxDo71uaMiddDA=; b=c2j3qmPi3GlVAal3XRG2ii7vMzM2M4vRQqzUdxQDLzN5fU9f+IR6NqAigiKwEcH+0zX42OTTKm4++6PYtGcz6mQTLyHINAFf6lokczY50G5UcSpmI/pYQLVVZ0B0KgGOwj8kP8mbODcB4NyLkoBhv1QNqlJX8rpGBknSXsqihnM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43007+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1561717547531841.0757357188227; Fri, 28 Jun 2019 03:25:47 -0700 (PDT) Return-Path: X-Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com [40.107.4.44]) by groups.io with SMTP; Fri, 28 Jun 2019 03:25:46 -0700 X-Received: from VI1PR0802CA0041.eurprd08.prod.outlook.com (2603:10a6:800:a9::27) by AM6PR08MB4311.eurprd08.prod.outlook.com (2603:10a6:20b:b8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.18; Fri, 28 Jun 2019 10:25:42 +0000 X-Received: from AM5EUR03FT009.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::207) by VI1PR0802CA0041.outlook.office365.com (2603:10a6:800:a9::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2032.17 via Frontend Transport; Fri, 28 Jun 2019 10:25:41 +0000 Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43007+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) X-Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT009.mail.protection.outlook.com (10.152.16.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2032.15 via Frontend Transport; Fri, 28 Jun 2019 10:25:40 +0000 X-Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1415.2; Fri, 28 Jun 2019 10:24:48 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Fri, 28 Jun 2019 10:24:47 +0000 X-Received: from E119924.Arm.com (10.1.199.124) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Fri, 28 Jun 2019 10:24:47 +0000 From: "Krzysztof Koch" To: CC: , , , , , Subject: [edk2-devel] [PATCH v1 4/4] ShellPkg: acpiview: Remove duplicate indentation in IORT parser Date: Fri, 28 Jun 2019 11:24:38 +0100 Message-ID: <20190628102438.30544-5-krzysztof.koch@arm.com> In-Reply-To: <20190628102438.30544-1-krzysztof.koch@arm.com> References: <20190628102438.30544-1-krzysztof.koch@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 604de79f-80d7-4df7-feb7-08d6fbb2f83a X-MS-TrafficTypeDiagnostic: AM6PR08MB4311: X-MS-Exchange-PUrlCount: 1 NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: mUTQwUj/IhwuLtVsAnzmValfMLASAAICkQaUDlKcATAkqz/cMvEZcgfOxixllorS36BdwkGahwcvWViGFr9s+OlN/aA8lFs/y3bcU/UMJLkwxa2+ZCS2PZ1eVdab6ECTzM9FtgqzIhMpGRMPq1xleTrf1naOnNotq+U9ulZ7Vr7GN4QoUBH/Wd6727jk4RHWEdUrpbM0QO/m8302pROmuP/ArvKxLlO01daJVKldvaqMXg/hGAGD6R7ef2Oz0hQiSNYxRb8NIwcGtOOsCX684fb/fYdpuxga2u3skIUYFRj3LdRG5VV+gLV4C0PWi8zg+E0+bB4q10LhO+gpqNi7/lArVT7T/qFQGN8e9UkCOPeSHO1SldjLYJEgyoA2Tys0P523GTiDDZT2PMEY7I7qgjeDNEFZiI7REvi9otJVWcE= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2019 10:25:40.5579 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 604de79f-80d7-4df7-feb7-08d6fbb2f83a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[40.67.248.234];Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4311 Precedence: Bulk List-Unsubscribe: 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,krzysztof.koch@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1561717546; bh=xgF9Oq+8tqP93cHmuMHk6EAE3OXesm3s2XHXRz3wZak=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=AK8wDv3jXEyixwbElHtquZQvHIfOaNfgi6JBJXQfDphYS8tFoSfWyaXA6Kt+6z8W317 K4YxoU0WwtmuSvhRLSt67envaFI0ipkJD3TE3GTj4Frhs7yaDEwU0pGvwtczNFkU2SZcs zYfn3+Q1IsPXpA4mcBsBd+q/i+gNmm/fce0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove redundant whitespace characters at the beginning of the strings describing IORT table field names. When dumping ACPI table contents, the indentation level for printing field names is controled using the 'Indent' argument to the 'ParseAcpi' function. In the IORT acpiview parser, both 'Indent' and extra whitespace characters are used for indentation, which results in excess indentation. Signed-off-by: Krzysztof Koch Reviewed-by: Alexei Fedorov Reviewed-by: Alexei Fedorov --- Changes can be seen at: https://github.com/KrzysztofKoch1/edk2/commit/b44e0= 07195f32246f33000934a6178d36f79e4b1 Notes: v1: - fix indentation issues in the IORT table parser [Krzysztof] ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c | 1= 8 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/Iort= Parser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortPa= rser.c index a91a4f9db13a52285bf56abe33f359a771fc04bd..93f78e1a9786ed53f6b5529f478= b72a220b4f8df 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c @@ -131,19 +131,19 @@ STATIC CONST ACPI_PARSER IortNodeSmmuV1V2Parser[] =3D= { An ACPI_PARSER array describing the SMMUv1/2 Node Interrupt Array. **/ STATIC CONST ACPI_PARSER InterruptArrayParser[] =3D { - {L" Interrupt GSIV", 4, 0, L"0x%x", NULL, NULL, NULL, NULL}, - {L" Flags", 4, 4, L"0x%x", NULL, NULL, NULL, NULL} + {L"Interrupt GSIV", 4, 0, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Flags", 4, 4, L"0x%x", NULL, NULL, NULL, NULL} }; =20 /** An ACPI_PARSER array describing the IORT ID Mapping. **/ STATIC CONST ACPI_PARSER IortNodeIdMappingParser[] =3D { - {L" Input base", 4, 0, L"0x%x", NULL, NULL, NULL, NULL}, - {L" Number of IDs", 4, 4, L"0x%x", NULL, NULL, NULL, NULL}, - {L" Output base", 4, 8, L"0x%x", NULL, NULL, NULL, NULL}, - {L" Output reference", 4, 12, L"0x%x", NULL, NULL, NULL, NULL}, - {L" Flags", 4, 16, L"0x%x", NULL, NULL, NULL, NULL} + {L"Input base", 4, 0, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Number of IDs", 4, 4, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Output base", 4, 8, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Output reference", 4, 12, L"0x%x", NULL, NULL, NULL, NULL}, + {L"Flags", 4, 16, L"0x%x", NULL, NULL, NULL, NULL} }; =20 /** @@ -170,14 +170,14 @@ STATIC CONST ACPI_PARSER IortNodeItsParser[] =3D { ValidateItsIdMappingCount, ValidateItsIdArrayReference ), - {L" Number of ITSs", 4, 16, L"%d", NULL, (VOID**)&ItsCount, NULL} + {L"Number of ITSs", 4, 16, L"%d", NULL, (VOID**)&ItsCount, NULL} }; =20 /** An ACPI_PARSER array describing the ITS ID. **/ STATIC CONST ACPI_PARSER ItsIdParser[] =3D { - { L" GIC ITS Identifier", 4, 0, L"%d", NULL, NULL, NULL } + { L"GIC ITS Identifier", 4, 0, L"%d", NULL, NULL, NULL } }; =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 (#43007): https://edk2.groups.io/g/devel/message/43007 Mute This Topic: https://groups.io/mt/32240403/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-