From nobody Mon Feb 9 16:19:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+60052+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1590085019767456.2275722680723; Thu, 21 May 2020 11:16:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id HUZsYY1788612xrM22FxYPD8; Thu, 21 May 2020 11:16:59 -0700 X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.54]) by mx.groups.io with SMTP id smtpd.web12.1401.1590085016356876463 for ; Thu, 21 May 2020 11:16:57 -0700 X-Received: from DB6PR07CA0067.eurprd07.prod.outlook.com (2603:10a6:6:2a::29) by AM0PR08MB5411.eurprd08.prod.outlook.com (2603:10a6:208:181::21) 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:16:53 +0000 X-Received: from DB5EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2a:cafe::a5) by DB6PR07CA0067.outlook.office365.com (2603:10a6:6:2a::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.8 via Frontend Transport; Thu, 21 May 2020 18:16:53 +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 (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+60052+1787277+3901457@groups.io; helo=web01.groups.io; 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; X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT024.mail.protection.outlook.com (10.152.20.67) 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:16:53 +0000 X-Received: ("Tessian outbound 9eabd37e4fee:v57"); Thu, 21 May 2020 18:16:53 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 88e581fb7ec22a39 X-CR-MTA-TID: 64aa7808 X-Received: from c1be71a4bb7f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6012F777-27FB-47B3-A364-17B39F754B7F.1; Thu, 21 May 2020 18:16:48 +0000 X-Received: from EUR03-AM5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c1be71a4bb7f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 May 2020 18:16:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k/3hrM0u9Q0KcdzgOpnTkKYxlMdHSVZp1/eciakv7+JpHRQrhtAXtoeExdHaU94MX5LoY2g719H9RurXEjXlbT08ZXfkW+NQd6fFg3f4Am6q58J4pz0YeLnm8bHe/fJEPdoJj4BvjMOGo+G2Rloggh+jIFagUMHCUynZ8PbeBgXtNAEAt+Wsm/pbF6VC10klF1WOeWapgX+zJujNUgH5UyOYW2oXikJvQG808xrClWWytp2mE92O9xR81dF2TPZ98Th/LvAZMXZBV+kzU1eSOp8OQ9XzZ2WQAi3Nc4YTs/q2kWyCRztvXouPb2IVnB8r4RktB4DGEvHVyuMnFvFIrA== 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=Jh9/fp1rShy4fGZ6CLAFYPFm7f4MJt4A7lqyLvAvQA8=; b=faQCkM8LaN/Wlv2WBTNBQn1DoaKoWFoyykxON1mxPbap0C9Fnjvw5/lEneCdvgFdXZrbnRJYtzA16h9Nmhgw/Z9U1q6T4RJanolouiKgV/PAAka6rIKTzY5BxeJc/winA4O3w/e2D9lqf60xaGWlJW0y15sAffWUARBzJBqiOmSaKhlUgzhLxAuzdOVBX2s8KisaQrI96LILUKxFq9oKiMeVV+rcoAblYQwNXHuxHw78yd75KeJEoXvPqCLqlk79Hf1tu9NXfYprgElxoUVAydTb5nRZ4ClVy6eLf8t5JInM+o8YOqabiq0zgQH5ujy3bCVzwhPefVkZWbhWeb5WlA== 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 X-Received: from AM6P193CA0085.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:88::26) by DB8PR08MB4090.eurprd08.prod.outlook.com (2603:10a6:10:ab::16) 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:16:47 +0000 X-Received: from AM5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:88:cafe::4) by AM6P193CA0085.outlook.office365.com (2603:10a6:209:88::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:16:47 +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; X-Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT025.mail.protection.outlook.com (10.152.16.157) 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:16:47 +0000 X-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:16:46 +0000 X-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:16:46 +0000 From: "Tomas Pilar (tpilar)" To: CC: Ray Ni , Zhichao Gao Subject: [edk2-devel] [PATCH v1 1/6] ShellPkg/AcpiView: Move log reset to main method Date: Thu, 21 May 2020 19:16:24 +0100 Message-ID: <20200521181629.79-2-Tomas.Pilar@arm.com> In-Reply-To: <20200521181629.79-1-Tomas.Pilar@arm.com> References: <20200521181629.79-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)(136003)(396003)(39860400002)(346002)(376002)(46966005)(478600001)(5660300002)(81166007)(82740400003)(36756003)(47076004)(6666004)(336012)(426003)(356005)(6916009)(82310400002)(1076003)(86362001)(2906002)(8936002)(4326008)(8676002)(316002)(54906003)(70586007)(2616005)(186003)(26005)(70206006);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a54d3ca-b300-450f-af8a-08d7fdb323b2 X-MS-TrafficTypeDiagnostic: DB8PR08MB4090:|AM0PR08MB5411: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:127;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: qO/EB6gQMI629FHd5w5jnVy+QnaJZLJjeOMrJe2ss19UlsaseB8SjmUsOftfuzFCNOIfJkeKcMCGwGLSOWaFMv1nIBhAw9JRPZaJxSzEOmVtCYCgKkl5VB8Ndsue4lYhU/9Ae0foh4nZPClo1c4UEZYQWLTqJe6TH6XwCStqw8YPpAIfRHuPZXSpnPS3gpcFw1dyWhs/7bCsM9Vhxnlxk+1X0h4xhIMjq605Eqr+F62IRehXebafGidJQ9dLC7KMUBwiA6+pK4nPISn4CKs5OqNFSW2MvQb7v8MwWShsQSy3hBV+gm6DCZqx50J3CAAJRZU2LkxcG9/pB5vvK3co1sfcx2TqsRMnjr0p7Z1phefVNm7DjmUS0fzG0Huafmf6oyQjTy79J7Ay7cefBJFj9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4090 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT024.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: f4f03137-31cc-4dc1-00cb-08d7fdb31fe1 X-Microsoft-Antispam-Message-Info: xSDs9TJUI00fXrSDpDngFonxiMuNKAW6SYx+x9XXfVDIEpUvvDE1BCSchuCPFj/BfG8LG0I/w1mGLZ6EKUJeHvlZw2S6CkiIWOEaatbVvbwYBz/x13Afy99hxpPjC2HZdmbREJHS0+5oJzHDwbBgmaLPnlEIDP51bz4eh533pc6ArMmD1xbxPcDmCyZFXqq2faI3VweCrZ+ouNrFG9P/FTGRx1Rg6fkjlCNXAIFFymfxbExAbovXtEKHSMDdWbXoG3MQowGAoB4VVGeC74SOrFl2hbJn+gDp4zHrezdiEDq3qj3MZwIVXcgMMYc4sWmRe48Lv+/fQFLxGl9NItiTIU7lQn5Knu0fUn/swc8qd9CydbaXAA23qvYgVcXrHFQp4U3VK2RdZUMJ70SMADgb8g== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2020 18:16:53.6040 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a54d3ca-b300-450f-af8a-08d7fdb323b2 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: AM0PR08MB5411 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,Tomas.Pilar@arm.com X-Gm-Message-State: tMnPJKbVVTMOPPjTDElDJzsOx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1590085019; bh=QmdDluv79K0cm5eJtWGtVRuGS1Xjgnx6DqDb4VnquF4=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=mahMzO7nip6d3yeMX3DLpIJoz4sni66/5pFLK7cclQpi7TvicfTVI9oWtu/Ec0Xh+/0 rdimfj2gopXVPn5Uy2Q0YgqlqeGvA8AlLTXg5HUGJuOtc7xvwp8nwVYf0sE05lvqPxLHN rSCAIrvSDmNtgYNeHQGyuSYz6L+x1FxgEYs= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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; + // 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; - // 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) { -- 2.24.1.windows.2 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. -=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 (#60052): https://edk2.groups.io/g/devel/message/60052 Mute This Topic: https://groups.io/mt/74381816/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-