From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=LMVRUoao; spf=pass (domain: arm.com, ip: 40.107.3.79, mailfrom: krzysztof.koch@arm.com) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (EUR03-AM5-obe.outbound.protection.outlook.com [40.107.3.79]) by groups.io with SMTP; Mon, 22 Jul 2019 00:50:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e+V26+WD9fdwov2RPJzTblSQG3eVtCfoR9B9qAuU+AX71Jpf/UVc4twqOAatxdjO+7ERrVWu58pgAaX8uqgzgAn9AFUv8XoDEFV8jy50HSDbg/rjyHu35VSIojmex7bHsa94h8hICE0Pd6tlGObqWTM7QPg9TbiVwfPISSeXPHOzuhKrhd/xqw4GRdx5HcCMiFZZi9Bszx7GJchz+i/iHz/OUsdfWJLiwgHVXcQ4nnnt/5dh9BgimG4Q5V7x5WJGp9mS3GwXjIcgV5AVsZ5Nb7+/JdakdMHxsP4EQS6uE/e9F/pzwvEpp1bdtFpsIXHZ6vt7KzeWDDLyC4/W2MzKcQ== 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-SenderADCheck; bh=bltkTDa0C6GmByNYoAm4heDYx3e1+toJJ4bCBk+9T8M=; b=KM5NkkueVmwrPnYkGNgBd+iqSLQ4AH/tp3IDrQ5V4g8xJc46RL4TKotITcAbRFXKjM1W7hOv8wEYMIRbosNoHm3bWFHe7UQq+gH80xOC8zGZumX6w+IR7xDgzMUMTsEYqlhj21xB8QKbg0xJ+i11/hyrNHVyQwL2Gu6R+RFY46DCjF143Nor8DGbmX0j8SUm0nxggIgl9QitbUZiSx0fgcjk5TFJMzBgbsHFEH9yTaJtO12FRkGHo8AmTOm+ZIokNMuQyZPQp/tfb9NC1Pcgxc9GceMn9VMs39a7iFqiEyXBWOXlzchCu+TzoraDRKxvax2May/1pvi+ry0+2n0LBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=temperror (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com;dmarc=temperror action=none header.from=arm.com;dkim=none (message not signed);arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bltkTDa0C6GmByNYoAm4heDYx3e1+toJJ4bCBk+9T8M=; b=LMVRUoaoX7QSKQOJB98itTCbGrSm0oSsp6vC+33K30sLYXduhr4nHPjhSvYc8mvZGZNVcBxZ54+X5ZFrr21Ja7QOGpCtjOVcC7thcLTMil2gVRMLjYUsaGZwbI/kdUnbn3oFnpEfsCS3pT142LA7bYxpG7LeggkgzqNrUF6Cp6A= Received: from HE1PR0802CA0011.eurprd08.prod.outlook.com (2603:10a6:3:bd::21) by AM5PR0801MB1844.eurprd08.prod.outlook.com (2603:10a6:203:39::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Mon, 22 Jul 2019 07:50:45 +0000 Received: from DB5EUR03FT021.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::204) by HE1PR0802CA0011.outlook.office365.com (2603:10a6:3:bd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2094.12 via Frontend Transport; Mon, 22 Jul 2019 07:50:45 +0000 Authentication-Results: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT021.mail.protection.outlook.com (10.152.20.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2052.18 via Frontend Transport; Mon, 22 Jul 2019 07:50:43 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1415.2; Mon, 22 Jul 2019 07:50:35 +0000 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; Mon, 22 Jul 2019 07:50:35 +0000 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; Mon, 22 Jul 2019 07:50:34 +0000 From: "Krzysztof Koch" To: CC: , , , , , Subject: [PATCH v2 0/6] Acpiview table parsers code style enhancements and refactoring Date: Mon, 22 Jul 2019 08:50:20 +0100 Message-ID: <20190722075026.20244-1-krzysztof.koch@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 Return-Path: Krzysztof.Koch@arm.com MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:40.67.248.234;IPV:NLI;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(39850400004)(136003)(376002)(2980300002)(189003)(199004)(1076003)(70206006)(70586007)(47776003)(53936002)(53416004)(48376002)(6666004)(356004)(2906002)(6306002)(81166006)(86362001)(36756003)(966005)(44832011)(6916009)(426003)(478600001)(63350400001)(16586007)(305945005)(486006)(8936002)(81156014)(8676002)(50226002)(186003)(54906003)(5660300002)(68736007)(4326008)(50466002)(2351001)(126002)(63370400001)(336012)(26005)(51416003)(316002)(7696005)(2616005)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM5PR0801MB1844;H:nebula.arm.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 109bef6c-e317-444e-7949-08d70e794cc5 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328);SRVR:AM5PR0801MB1844; X-MS-TrafficTypeDiagnostic: AM5PR0801MB1844: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: NoDisclaimer: True X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-Forefront-PRVS: 01068D0A20 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: bGLyszhqDfsQJOKMYTJvqEu1OiymeHZDEd1tf/Rvhu60wKbHbroxTPhQ5EEJ0eHQ4G82nLSHFjTnBA5bRC1hTKzAHLEpW51COTpUQ81HePw4MXnJB8wnRAIjV/spICtNunh5YuSxZQYNiqHFYc/Fkc07Q8UDYf7cKXkhb9Hvw8MRO4Ple9XD/cNjPrj8D3wLgpIbRrsBwgwSEPKBteM0epIZNkLhXSo5J6mcHjsLDcwjUkJ0xBrgmtn7bqCohmpsJl+R1PwGTjUwRybMnqJ4HGbU0+EEZTLePqfl4SfhnQO7GhOXDR0ZBwTNd1MMP1Yy3MYpSl4VobEhodqYSXD9ovzgaTEQeBL7YdHaJ43tvhNpC2mHrelD8Xb7hmvroKFD8ZWPrbT1j3rzJ49GvpeqgIJtbvb75yNg7CJP9dWI8JI= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2019 07:50:43.7816 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 109bef6c-e317-444e-7949-08d70e794cc5 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: AM5PR0801MB1844 Content-Type: text/plain This set of patches consists of a number of changes which make the code structure consistent across the existing ACPI table parsers. These are all refactoring changes which do not modify the existing functionality of the acpiview UEFI shell tool. Changes can be seen at: https://github.com/KrzysztofKoch1/edk2/tree/612_acpiview_code_style_enhance_v2 Krzysztof Koch (6): ShellPkg: acpiview: Allow passing buffer length to DumpGasStruct() ShellPkg: acpiview: XSDT: Remove redundant ParseAcpi() call ShellPkg: acpiview: RSDP: Make code consistent with other parsers ShellPkg: acpiview: SRAT: Minor code style enhancements ShellPkg: acpiview: MADT: Split structure length validation ShellPkg: acpiview: IORT: Refactor PMCG node mapping count validation ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.c | 26 +++++++++------- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h | 8 +++-- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Dbg2/Dbg2Parser.c | 2 +- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Iort/IortParser.c | 32 ++++++++++++++------ ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c | 30 +++++++++++++----- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c | 11 +++++-- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Srat/SratParser.c | 3 +- ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Xsdt/XsdtParser.c | 18 +++-------- 8 files changed, 82 insertions(+), 48 deletions(-) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'