From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.53]) by mx.groups.io with SMTP id smtpd.web12.1955.1590086688745304032 for ; Thu, 21 May 2020 11:44:49 -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=A6j0jGE3; spf=pass (domain: arm.com, ip: 40.107.20.53, 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=iTepwUzKF1fJmGfhwtqlaTPxMUWIKP4Mk8W/uhjQquE=; b=A6j0jGE3s3IHB+JX2DLMmMybUbLlIJnRVOrLKuhsnzCJu46bjOnhIFqsWTGg1pGsieiIDYhaGG/zbpCMWP3HjhoA0T6WAh+XT+0rvtY1URDtwoKNk1pzu14sRxriTXB6f7w43SxE49sdS4BXuKQ7XhC5gFm4UwOM8tC5bpxT7uQ= Received: from MRXP264CA0011.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::23) by DB7PR08MB3420.eurprd08.prod.outlook.com (2603:10a6:10:4a::15) 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:46 +0000 Received: from VE1EUR03FT021.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:15:cafe::f7) by MRXP264CA0011.outlook.office365.com (2603:10a6:500:15::23) 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 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 VE1EUR03FT021.mail.protection.outlook.com (10.152.18.117) 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 facc38080784:v57"); Thu, 21 May 2020 18:44:46 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 05ed37375f137160 X-CR-MTA-TID: 64aa7808 Received: from bbf31e4f250d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 170456E5-76FA-4FC4-B09E-23A5D2ED6AD5.1; Thu, 21 May 2020 18:44:41 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bbf31e4f250d.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=eDIVZtzYigSKpleCK9BbYVv3lJxGZYPUOXqsWfa2O4T5BHnbxOUPvU6i3HWVGiUNSe429661DJxiFgSY6tElMjVlIdwKqIMcTqh+FZh/dnNo+aXOfNlDH/qu2vnWb4z1IR7f2KSIPEnUNsKyv0YqoU+ZK7w/rUaBLs2ymRnxOlIpYjjO35uJlv6Jy3iJY8EndFL3yKBuKY5ps5CBgATZap6rtlo9tkEYYKeZlJVfsPClRRz8TwSn/QHvDVUVha3TxhaWuegpX2O2kPzycgIZqEsiw01vNVpq28QDreizcXpmJhaKKuqD1hx00Ov2zb8yguNi4G4g8ItGYPkN1jBR/A== 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=iTepwUzKF1fJmGfhwtqlaTPxMUWIKP4Mk8W/uhjQquE=; b=d7QrYXoqZL2aBgy1/Arble+J5wxTM+lRs+qApKQEscjCBGxds4AzbS9052DYqm5qH83PmBvgzUAEbZY2r4SWNMW7HiJHOnqbTUggQRC1uDUQZ9+3PptOfgeza8lFtgxHn4pegdvNG/jQ8praTo6xuLmLTFplUImSn23v7f4Jj0iNbq9/e/PNxgvsNHh4Z4TqJt0cyptrYnqYTcNF7n9D5hVER+cjvQi2aCdtINmM8PuYkH+5MvuXFCI0ATm1uPxxNI1YqzSNH32Zxo4GO2j2vLNjEGhYVRaAu4nxZEx6Fu7cFJqHzo5DWFmZFz4SNRO2ecIQamPQIkMwg7dMXIhFZA== 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=iTepwUzKF1fJmGfhwtqlaTPxMUWIKP4Mk8W/uhjQquE=; b=A6j0jGE3s3IHB+JX2DLMmMybUbLlIJnRVOrLKuhsnzCJu46bjOnhIFqsWTGg1pGsieiIDYhaGG/zbpCMWP3HjhoA0T6WAh+XT+0rvtY1URDtwoKNk1pzu14sRxriTXB6f7w43SxE49sdS4BXuKQ7XhC5gFm4UwOM8tC5bpxT7uQ= Received: from AM3PR05CA0144.eurprd05.prod.outlook.com (2603:10a6:207:3::22) by AM6PR08MB4882.eurprd08.prod.outlook.com (2603:10a6:20b:c5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.27; Thu, 21 May 2020 18:44:38 +0000 Received: from AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:207:3:cafe::70) 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:38 +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:38 +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:38 +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:37 +0000 From: "Tomas Pilar (tpilar)" To: CC: , Ray Ni , Zhichao Gao Subject: [PATCH v2 1/6] ShellPkg/AcpiView: Move log reset to main method Date: Thu, 21 May 2020 19:44:16 +0100 Message-ID: <20200521184421.2222-2-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)(396003)(346002)(376002)(39860400002)(136003)(46966005)(47076004)(26005)(36756003)(186003)(5660300002)(8936002)(6916009)(478600001)(2906002)(356005)(336012)(82310400002)(4326008)(426003)(2616005)(70206006)(81166007)(316002)(8676002)(54906003)(6666004)(1076003)(86362001)(70586007)(82740400003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 77660fed-f8d7-451d-f587-08d7fdb708d9 X-MS-TrafficTypeDiagnostic: AM6PR08MB4882:|DB7PR08MB3420: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:127;OLM:127; X-Forefront-PRVS: 041032FF37 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: GW/Sp4ip+eNb9b6g43IkkVH210zqwCnd+gPcCR5XlOkgnZDyz4HLswQJmBVZKacdrXU8zCvCv1eE5hkFlGHhB0sTD9/Sz3/SGb3uAjV5MYtciO85ZOdcG+n6oZ5sZdptewOmn9JaZi76gF/naA3Q9zgP+aoZ2u0xF87P/ZQoOQ5tsmu2weiJ83FOv7sWeDWsszncrN4HuDftNyvyUR2fH/wnZ8RFxjy1yl08w0CvQKVmhqGqqqM2gF40Oh13EUynGtNbZrZ4tmbCkPcwPbNIMvZs0RGDwm0lezmUBr/8whuNxTtF0J82dsOpbG7J0QlFj6wwvcxowsmvPsIYTVEthfscZ19TMUsP5phIOUIIQPpl65EMZFRm0kkoUWy+HlHg/vf1VAe5tQ3KWyxs5kxxYw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4882 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT021.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)(376002)(346002)(39860400002)(396003)(136003)(46966005)(4326008)(8676002)(8936002)(2906002)(2616005)(86362001)(26005)(70206006)(186003)(316002)(54906003)(70586007)(107886003)(82740400003)(36756003)(426003)(336012)(5660300002)(81166007)(478600001)(82310400002)(6916009)(1076003)(6666004)(36906005)(47076004);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: ddbff98a-9725-48cf-9800-08d7fdb70421 X-Forefront-PRVS: 041032FF37 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TSftgwccYVvNVkIek+5IYzvoc6bBA4KHUkg1BNfgUpmvbpMgxuc/0tSgIN8saInuEwuBYBrd4kbexp11SdTcQipAuRMUYP8y+76wUYUX8SuV3vwIh7QyP3RnpGtiZtUZ+yng3Ym9l//eRwhT2Msk3zGFC37n/CmUyT6noyn8wIvs/tqmIM4lhpjDtqBnP1br85XGKQA8wDV0bo0i1d+epmIuEopX+Pa+gHOR3PKIVkiVMpci5T01Eug9c2UduxzUdbacZR31hTM1+mLS6MSvjlDlXlzR2KChEMOznAPAvIK3St64cCcTLCpD+GjqJCz3EkjgA8ynrkv1WGkBSDm15YBMoAy1v8P3W02dNV0pO6W7ghOHmlKVJhx1qjnaYbuu64IoX8HmsBAE/JZIOtw+kg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 18:44:46.4529 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77660fed-f8d7-451d-f587-08d7fdb708d9 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: DB7PR08MB3420 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain The error and warning counters are reset in the AcpiView main method. This improves reusability of the main method. Cc: Ray Ni Cc: Zhichao Gao Signed-off-by: Tomas Pilar --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c b/Shel= lPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c index 84ffb3595750..f1a95b7b8f03 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c @@ -424,6 +424,10 @@ AcpiView ( EfiConfigurationTable =3D NULL; OriginalAttribute =3D 0; =20 + // Reset The error/warning counters + ResetErrorCount (); + ResetWarningCount (); + // Search the table for an entry that matches the ACPI Table Guid FoundAcpiTable =3D FALSE; for (Index =3D 0; Index < SystemTable->NumberOfTableEntries; Index++) { @@ -566,10 +570,6 @@ ShellCommandRunAcpiView ( Package =3D NULL; TmpDumpFileHandle =3D NULL; =20 - // Reset The error/warning counters - ResetErrorCount (); - ResetWarningCount (); - Status =3D ShellCommandLineParse (ParamList, &Package, &ProblemParam, TR= UE); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_VOLUME_CORRUPTED && ProblemParam !=3D NULL) { --=20 2.24.1.windows.2