From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.42]) by mx.groups.io with SMTP id smtpd.web11.1916.1590086689831913495 for ; Thu, 21 May 2020 11:44:50 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9JiXjc/G; spf=pass (domain: arm.com, ip: 40.107.15.42, mailfrom: tomas.pilar@arm.com) 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=BaJTCFdWvlq7lQtSLKcV3956jHRcFAA9jdckv2vrkFg=; b=9JiXjc/G8Egd7IaZ6gWBszmfcW1WL/oYcMRI/XcNM1Q1YIWyszM0cZh4ro14TN1825x1c9n6L4pbMjV93Ll5o08NV7yubjdTKrT9I9xA8r3JlcoIHuoBUHbG0nK3gpgcqVw9AfRZ8aCtdJnMYC8L0GOeUWUtt/xziO0NF1vIfF0= Received: from AM5PR0602CA0016.eurprd06.prod.outlook.com (2603:10a6:203:a3::26) by VI1PR08MB3021.eurprd08.prod.outlook.com (2603:10a6:803:47::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.27; Thu, 21 May 2020 18:44:47 +0000 Received: from VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:a3:cafe::e8) by AM5PR0602CA0016.outlook.office365.com (2603:10a6:203:a3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.24 via Frontend Transport; Thu, 21 May 2020 18:44:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT022.mail.protection.outlook.com (10.152.18.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:46 +0000 Received: ("Tessian outbound 9eabd37e4fee:v57"); Thu, 21 May 2020 18:44:46 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 449440306e439c3d X-CR-MTA-TID: 64aa7808 Received: from ce535e6581cd.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 97D25AC6-AECB-4647-B36E-2CA37EE13DA0.1; Thu, 21 May 2020 18:44:41 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ce535e6581cd.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 May 2020 18:44:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I+YhLt0bpQFKBK/oFCtNZTkImVhLiJCjT5cUpvH8Rm25+y5D74OVRPLGlI2hS8lsy/tnx9LxEdgkFpmwA0IL/lR0NXmzYoIxLPxc0TGUM/A7sca717y8Ty6rCAGb+u/h5RxxkYGQRYVxfJmX//6f9XcnH9nm23zSeq1lksQ5qieZF2KS/Z++J10bvvPLHgarxbCqLfNsndIxI12Ps/mOM2hF919xUy0NCwFrQv2mtzvryy1dmwnP/dgggEuElx2jC6bKb+Am1XM9MNX4XMlsIKkHpvdXFx8B7sIa9zon7JIAKJFOXlR1EukKZE87OSz+XrRJv73XbRvaBzs98SEdCA== 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=BaJTCFdWvlq7lQtSLKcV3956jHRcFAA9jdckv2vrkFg=; b=EaPmgZaDb5S47uy2z8sxx5umDOg/cmyYKgwjaaBN4vxIRKK6NW1i3KdeN+KxMgPbxa2G7Pote95df3uzqXv43SyyAfmU/9bi2neXyQ8+wKMAAaOBFHKYYqwpCQurJv685EpMO0oqBCIW0/HfOCFmGFKgDan9uJ1rTN8MtdezRZDkFO0p1DT9Li+Dt7o6nH5qhwxGQR9mrSUhmfhWK4AgYNzsCw5f3cTuqnlLdQ9+TEaYTAihaCE6iTiE3IRZipOnmq3wKDy4BmdGz6KqF/w2zRV7G3NLz0NYL1Xc2hsYM63Lpeb8easMZ+uEopIIAkK5eUs2qynS4cjIwkX8ox2XMg== 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=bestguesspass 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=BaJTCFdWvlq7lQtSLKcV3956jHRcFAA9jdckv2vrkFg=; b=9JiXjc/G8Egd7IaZ6gWBszmfcW1WL/oYcMRI/XcNM1Q1YIWyszM0cZh4ro14TN1825x1c9n6L4pbMjV93Ll5o08NV7yubjdTKrT9I9xA8r3JlcoIHuoBUHbG0nK3gpgcqVw9AfRZ8aCtdJnMYC8L0GOeUWUtt/xziO0NF1vIfF0= Received: from AM3PR05CA0144.eurprd05.prod.outlook.com (2603:10a6:207:3::22) by AM0PR08MB5058.eurprd08.prod.outlook.com (2603:10a6:208:160::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Thu, 21 May 2020 18:44:39 +0000 Received: from AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:207:3:cafe::12) by AM3PR05CA0144.outlook.office365.com (2603:10a6:207:3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (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=bestguesspass 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; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT059.mail.protection.outlook.com (10.152.17.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3021.23 via Frontend Transport; Thu, 21 May 2020 18:44:39 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Thu, 21 May 2020 18:44:39 +0000 Received: from localhost.localdomain (10.57.25.130) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Thu, 21 May 2020 18:44:38 +0000 From: "Tomas Pilar (tpilar)" To: CC: , Ray Ni , Zhichao Gao Subject: [PATCH v2 3/6] ShellPkg/AcpiView: Move table count reset Date: Thu, 21 May 2020 19:44:18 +0100 Message-ID: <20200521184421.2222-4-Tomas.Pilar@arm.com> X-Mailer: git-send-email 2.24.1.windows.2 In-Reply-To: <20200521184421.2222-1-Tomas.Pilar@arm.com> References: <20200521184421.2222-1-Tomas.Pilar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant 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;SFTY:;SFS:(4636009)(346002)(396003)(376002)(39860400002)(136003)(46966005)(2616005)(6916009)(4326008)(2906002)(70586007)(8676002)(36756003)(81166007)(336012)(426003)(82310400002)(356005)(8936002)(70206006)(1076003)(47076004)(186003)(26005)(86362001)(82740400003)(316002)(6666004)(5660300002)(54906003)(478600001);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa2d397d-a34e-489e-cc8c-08d7fdb70916 X-MS-TrafficTypeDiagnostic: AM0PR08MB5058:|VI1PR08MB3021: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1107;OLM:1107; X-Forefront-PRVS: 041032FF37 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: oH0Ba19/eMmtyHN9JJ+fhTmJ9CWVISIwzBIRwRZ895+JyIYqC0HsLJqtKsSGixrwgSjY8iAg8RX0R7kCmtG0PWdss+wJ7GfX1PQ2msrgOpWkUOdy6BUojHoTTj3BQt3lS0ulvffHQoIfqdTLlXI2EI74OnIcT7QU8fIUy9vNPF3MBmOAZOwlCYlA9wLjxdv+EGXb+sF8WHWnbKHsxJcIZR/d+HcedIry0SnbLr4lG04id7/5Tc+vfLBOcpiNYTHZasb+drgmMdx21qsdNdKMZ9yVAwsOTsyXkGlO1DK+voSg0Xk0svvkMmG3AUJN+IwWmD8XLJSeAfOuZyliIGix4xlW/obi8PqpmuEvFeNWivCvJ1Mj4Z7Lkq+7YhQFz4TbAFszTH+vOg/wqxUQKYR89g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5058 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT022.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(46966005)(1076003)(47076004)(4326008)(8676002)(107886003)(478600001)(81166007)(82740400003)(2906002)(36756003)(26005)(8936002)(54906003)(86362001)(6666004)(186003)(70206006)(70586007)(82310400002)(316002)(36906005)(2616005)(336012)(426003)(6916009)(5660300002);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 2f88412c-bdb5-48c3-4bb2-08d7fdb704bf X-Forefront-PRVS: 041032FF37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1z0Q1kH85hhhAArA2oldk0y8LjtB/ayf6MyPE4dOo5T6xK/VPXQr3z+wZzNBwUHZ56PMfJMfgCBx/Y1GIuLXABFp2ksmlsQF88dxhrV4BjzCZ71AKzD6ODgg6zbce2y3KHW63bwu6uL0V6Kv1bdvHLkLdspYPg7lGbA5B4zIxGpX7KOLTQLp4h9FU2iMU+CjZBV+QcQD9X4i3zF99AiguFc/fqjDm50W5iWMr40wjrGm/Z8n+3G+qcicT/9pzvOWbFR47c/IUbB8+3Mfp2Uw+GvcRP3pvMpy4xqER0DR8PrQQz1QTC6C0HxloCVZ9AJ6u/2jwKaxtC7BmilroU2Ga/Krv5D6YmPApVMtF/VBIF2NLj9VLJT1JG/lF0hwLSwXy9fTnDhJ4uvlVsEQ3ez8rU4D8sHmrk3k3MKOzf0gikaw5tfg+IYY6HckcBfP72D0wtwfWOXwDkN15x00cokLHaTTpMY7YuC4OWlGGJHMOG79riHTnp2y3xybiCLjVgNx9ZdF96gk5/lWeiYXAwhp6w== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 18:44:46.8516 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa2d397d-a34e-489e-cc8c-08d7fdb70916 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3021 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain The table count module level symbols are now reset when executing the core method, rather than the shell command wrapper. Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c b/Shel= lPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c index 2f7395c23bce..c9654e52c434 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c @@ -255,6 +255,10 @@ AcpiView ( EfiConfigurationTable =3D NULL; OriginalAttribute =3D 0; =20 + // Reset Table counts + mTableCount =3D 0; + mBinTableCount =3D 0; + // Reset The error/warning counters ResetErrorCount (); ResetWarningCount (); @@ -390,9 +394,7 @@ ShellCommandRunAcpiView ( CONST CHAR16* MandatoryTableSpecStr; CONST CHAR16 *SelectedTableName; =20 - // Set Defaults - mTableCount =3D 0; - mBinTableCount =3D 0; + // Set configuration defaults AcpiConfigSetDefaults (); =20 ShellStatus =3D SHELL_SUCCESS; --=20 2.24.1.windows.2