From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.54]) by mx.groups.io with SMTP id smtpd.web11.7233.1592919815405239471 for ; Tue, 23 Jun 2020 06:43:35 -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=J/RWDCpV; spf=pass (domain: arm.com, ip: 40.107.6.54, 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=/vdgKEk7BqfHeFk6DrqAFrZubyNg4BGiu4LKNEHFuVw=; b=J/RWDCpV1EXtXS556etxGNICqs6ezeM+bXleZIXbKYdbptRRl8GXwsdZZuQn2POJsfXD8+TgVKEOHrCWowt5v/8vC3D5gLfdAtIDhQiWYXKe3XGLzvZoAVyyQ/6qKUmFf3Wh/+Vi0oxZ3ostmzpsgygSPqwsx5dPsDqhHlkiUoE= Received: from AM5PR0701CA0054.eurprd07.prod.outlook.com (2603:10a6:203:2::16) by DBBPR08MB4743.eurprd08.prod.outlook.com (2603:10a6:10:d9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21; Tue, 23 Jun 2020 13:43:32 +0000 Received: from VE1EUR03FT029.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:2:cafe::ab) by AM5PR0701CA0054.outlook.office365.com (2603:10a6:203:2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.10 via Frontend Transport; Tue, 23 Jun 2020 13:43:32 +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 VE1EUR03FT029.mail.protection.outlook.com (10.152.18.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Tue, 23 Jun 2020 13:43:32 +0000 Received: ("Tessian outbound 8fb20e43acb7:v59"); Tue, 23 Jun 2020 13:43:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b77def79eea51476 X-CR-MTA-TID: 64aa7808 Received: from acf98bc250bc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6D314AB7-FE90-4728-B381-2B07B176051E.1; Tue, 23 Jun 2020 13:43:26 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id acf98bc250bc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 23 Jun 2020 13:43:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YqQtXvADH1zVX0j6rSauVl0TsGwFYFdxIK6j+sA5JfNdUE+IfQDmTY9jQOQGhoG96UAZmxf1ZbFnGT6cv9GrsmvQLiW5iUH9O1ljHQIqNGySCBb53p5Ux18LcJzTJMwdT9OhXxxhYDFB9vZNKjczPI3/KP4jvWN0iuRovHRM1xh+zoOADkzkcfQmBfiPsIfu0nSRvczGSZksTuE1HuhTKWjO3Y/tZ5+sDjfxXayZqM9ttvktOQOuWk2jyGKqi5y56oVsnxbPUtQ62k8tpdhIhgY+XabmTX1huD937y+Yia+BJS0kQCwtKoz9HaHP3JvovBhMTSmC1dfGou/OT3SrUg== 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=/vdgKEk7BqfHeFk6DrqAFrZubyNg4BGiu4LKNEHFuVw=; b=QUIQnIOG6K8ls9RCyInR+Fj4gs2sXMMPpfb0sFoUW2sX8zB3bQ6MjEoNVzI5W0ocKlIA7281hweI/X1Psz4axSdsoWETcGbefg6zWdenSLjvbqBytYVAzfxZrY/jMnU3MBYbCDdAPJ7D3e5eZTpWBs2CDOKWOIiGgG+mbm6dwMUKzGmIraBJ52eTDoWf+ErrrExsV99gOt6+ld4F21CYD+TImf+3KfRH7j3btCIyMeYZj9ugr/FpRzJMsMC3KPzbw3YC0bhg6zSnu1x56CQko77h3DwmURAF/bNgO2L6KcuuaodUqnddpKU5sealcaUmrYN1kiyUPYYcfbp+HIv8/Q== 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=/vdgKEk7BqfHeFk6DrqAFrZubyNg4BGiu4LKNEHFuVw=; b=J/RWDCpV1EXtXS556etxGNICqs6ezeM+bXleZIXbKYdbptRRl8GXwsdZZuQn2POJsfXD8+TgVKEOHrCWowt5v/8vC3D5gLfdAtIDhQiWYXKe3XGLzvZoAVyyQ/6qKUmFf3Wh/+Vi0oxZ3ostmzpsgygSPqwsx5dPsDqhHlkiUoE= Received: from DB6PR0201CA0023.eurprd02.prod.outlook.com (2603:10a6:4:3f::33) by VE1PR08MB4783.eurprd08.prod.outlook.com (2603:10a6:802:a9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Tue, 23 Jun 2020 13:43:25 +0000 Received: from DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:3f:cafe::f4) by DB6PR0201CA0023.outlook.office365.com (2603:10a6:4:3f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Tue, 23 Jun 2020 13:43:25 +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 DB5EUR03FT003.mail.protection.outlook.com (10.152.20.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3109.22 via Frontend Transport; Tue, 23 Jun 2020 13:43:25 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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; Tue, 23 Jun 2020 13:43:23 +0000 Received: from localhost.localdomain (10.57.20.205) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Tue, 23 Jun 2020 13:43:23 +0000 From: "Tomas Pilar (tpilar)" To: CC: , , Ray Ni , "Zhichao Gao" Subject: [PATCH v4 3/7] ShellPkg/AcpiView: Move table count reset Date: Tue, 23 Jun 2020 14:43:00 +0100 Message-ID: <20200623134304.2619-4-Tomas.Pilar@arm.com> X-Mailer: git-send-email 2.24.1.windows.2 In-Reply-To: <20200623134304.2619-1-Tomas.Pilar@arm.com> References: <20200623134304.2619-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)(396003)(39860400002)(376002)(346002)(136003)(46966005)(82740400003)(186003)(356005)(36756003)(316002)(54906003)(82310400002)(83380400001)(6916009)(47076004)(81166007)(26005)(86362001)(70586007)(5660300002)(336012)(70206006)(478600001)(2906002)(1076003)(8936002)(426003)(2616005)(6666004)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a14099a5-1523-4e8a-14c2-08d8177b6b52 X-MS-TrafficTypeDiagnostic: VE1PR08MB4783:|DBBPR08MB4743: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1107;OLM:1107; X-Forefront-PRVS: 04433051BF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 6O9Ftc+zpi6oi89bZbMc5ybKitaOfoGsJCil1ZN6XH0MGp/tMPPlf7ZuRhUtGdyqG7zS3tYpxzNkciz7WV7XM9pbDqEGj6PaNtJ7OkcUeKS+XJXCj5BMEtU7DNR/ipfGGTVI3Ad9uMT9Mjf9h1qiY/beBNwZkQR9xY6yco1W4MV2xwBQAxzBiW+uvHD1B3LNt/zy9Vs9Dp1M3xzUqGsqxrLLGmElamqFwGVm7nGLAvDXXpZBoB48FJc7ZLZGlzfYzK5WCimK3RRfuAgsuA61qnfgjwsAYqPyeJM6du/7D/Z3+Gj35VOWQb2a5ejy3VevnKE3equ5xJpAkhuIcJEyjiDbZ99jzVFPuuezQf0JNt0q7IhhbRKRgzuzgp8/IeB455GbdbH8VZN9SAmwND8qNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4783 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT029.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)(39860400002)(136003)(396003)(376002)(346002)(46966005)(36906005)(478600001)(336012)(82310400002)(81166007)(107886003)(2906002)(316002)(426003)(6666004)(47076004)(2616005)(186003)(82740400003)(4326008)(26005)(1076003)(5660300002)(8676002)(8936002)(83380400001)(70586007)(70206006)(6916009)(86362001)(36756003)(54906003);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: b5355e35-ea3b-420a-2947-08d8177b6715 X-Forefront-PRVS: 04433051BF X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 08ApwRaw/IUWNqKPrShNe2kIn8gF8IiReS806hnpELPEV5UV4E/wFCq56n6/iUWsSxo3C2EO4MrCFe/BAcSnYVzOhofxGN6kCiqt8WEjSHggfHCQ0mSdQR6eJ1FeeMBt40yud/voNPRA0uo5RHGhsts1DYhPzzb+knH8snfGRq6ARugBrTv6j00eTUqB2KioZFfOzBP/HrEIQORAHebw2V1phCUJfv+ajLzkjOybaEmKuLzPhP53+GMI1MEffIXSJ8aOD1fUryTgqRFpZmuOgQz703QcUwiyDQ7zTnwkd0t2WTmdWYjA5P+eC3iFv5wy0kjv+zsv6JIdF1ZbvKp2BERbvIQDK+2zD3biBRSd7xNWzVA8T3s+LcpWWlf89I/2AX5v6X982YEH0BAxy9CJjw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 13:43:32.0403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a14099a5-1523-4e8a-14c2-08d8177b6b52 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: DBBPR08MB4743 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 Reviewed-by: 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 b068dd4d2722..40778374af45 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