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.52]) by mx.groups.io with SMTP id smtpd.web11.7230.1592919814221157035 for ; Tue, 23 Jun 2020 06:43:34 -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=2o7PIqBr; spf=pass (domain: arm.com, ip: 40.107.20.52, 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=yLimyfg67ksFHw+Iha9g0rDeDe83NlUb1d+MgXR53Q0=; b=2o7PIqBr2/WHEtR7Nax8scNnOk2D9xuFe4+ZaWZGvn0w5So7j0TW9b5M19aPTYudQA/6aEToh9kP+HcGjKVBFpbLp/jWFShuZm7K5XdJ0OyA4/bj/C26XXXzC4kWLBJh0IuG9WMI3ftouuxSDFyKDdEnPw9LfY56gUYnlmdcMfc= Received: from AM6P195CA0062.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:87::39) by VI1PR08MB5440.eurprd08.prod.outlook.com (2603:10a6:803:134::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Tue, 23 Jun 2020 13:43:32 +0000 Received: from VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:87:cafe::90) by AM6P195CA0062.outlook.office365.com (2603:10a6:209:87::39) 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:31 +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 VE1EUR03FT038.mail.protection.outlook.com (10.152.19.112) 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:31 +0000 Received: ("Tessian outbound da41658aa5d4:v59"); Tue, 23 Jun 2020 13:43:31 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 83bf69e6415a8da2 X-CR-MTA-TID: 64aa7808 Received: from 4f579bcd896b.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F1B4B4B9-A4ED-483D-ADC2-272CF033ECD7.1; Tue, 23 Jun 2020 13:43:25 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4f579bcd896b.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 23 Jun 2020 13:43:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f8otSSknHm5nSVD80BbEadIJ4+5oTdoPVBOswVPjbkZYzBeF76VwlJ/hODg618SuR2F6C57YfJsMp9DKM78Z098eS5PFbsoU/fui6RGkMIOOvX7juVv7SzOCU5z3a+HjcKFFBYv08x8PO9/2Pic/dJIfelCs4/HCLQ8+yfTwtV/3C3lpRck4BobbBxBNB3/zhbC5tpifN/KybOEbLTSlE+PzeQ4NzSwu89sF8GA3wpzglS7bVhdBYqc5Ncj9H/5oCPZiNQkKeuG2qo30XQhOfCWFTiw9F+QJehqiJqa6mA4Ps82YsoBsIIRkaO8TbEZhX7m0pHiAwQ7yNoWKGbeOJQ== 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=yLimyfg67ksFHw+Iha9g0rDeDe83NlUb1d+MgXR53Q0=; b=I6N5cYCScWUYKivhm6WPuIp8seh8yCqdnTFc64ggDyedpvn37YI/5m/0yBrmVB7p21GFkutQdV9bO10ukU2lJvpQpsu9ymN/vlvn+NrPWGeI6Mn8bFrrRNlKsI63Qa/Nj7VMYgZZctZxemVpZ2qi8iUuP+VuGzMKveAV66/c4C0r6oi6loIFcZbv25t1N3EiBMlS2Iyj8pVy1qG4pHQFjsltMu965lM6QF1c2c1Ql7jZgQtMqT0UQMis8zQB6SOQ8GE2MP+a0SsjGlJwOzbbwTo9x86yJZenCpqWvP+tpWQ/q7VbLMCsaJkCkQtH8f/55qpVy+MDP+sUGlIEIKQyKQ== 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=yLimyfg67ksFHw+Iha9g0rDeDe83NlUb1d+MgXR53Q0=; b=2o7PIqBr2/WHEtR7Nax8scNnOk2D9xuFe4+ZaWZGvn0w5So7j0TW9b5M19aPTYudQA/6aEToh9kP+HcGjKVBFpbLp/jWFShuZm7K5XdJ0OyA4/bj/C26XXXzC4kWLBJh0IuG9WMI3ftouuxSDFyKDdEnPw9LfY56gUYnlmdcMfc= Received: from DB6PR0201CA0042.eurprd02.prod.outlook.com (2603:10a6:4:3f::52) by AM6PR08MB4199.eurprd08.prod.outlook.com (2603:10a6:20b:b0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.23; Tue, 23 Jun 2020 13:43:23 +0000 Received: from DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:3f:cafe::d5) by DB6PR0201CA0042.outlook.office365.com (2603:10a6:4:3f::52) 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:23 +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:23 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1415.2; Tue, 23 Jun 2020 13:43:22 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.1779.2; Tue, 23 Jun 2020 13:43:22 +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:22 +0000 From: "Tomas Pilar (tpilar)" To: CC: , , Ray Ni , "Zhichao Gao" Subject: [PATCH v4 1/7] ShellPkg/AcpiView: Move log reset to main method Date: Tue, 23 Jun 2020 14:42:58 +0100 Message-ID: <20200623134304.2619-2-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)(136003)(346002)(376002)(396003)(39860400002)(46966005)(70586007)(70206006)(1076003)(186003)(2906002)(336012)(83380400001)(6666004)(5660300002)(86362001)(26005)(4326008)(82310400002)(426003)(36756003)(81166007)(54906003)(356005)(316002)(8936002)(478600001)(8676002)(6916009)(47076004)(2616005)(82740400003);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 19cdc5b2-18ff-43fc-07c6-08d8177b6b02 X-MS-TrafficTypeDiagnostic: AM6PR08MB4199:|VI1PR08MB5440: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:127;OLM:127; X-Forefront-PRVS: 04433051BF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: S7u7qfw9PbQcFGRLwu3bEmEITOKTzY6chnszAR4JLMBzdxO2Z/GY3rcD5aTjj34Uqps7PCppad8QVginnUtpcGXCDuQqks56TuY1PVsj2wuAFzOuIPHyK819Q2jLzvWevWwNIVIheVbp9IdUVNOj1gTBqjSGurCqgZGHRFnf7XOUfzkuguc2Fi8xQAHOsrFoEzssCanYnx/xmX69TnveyLUX/Dpg62cuESLo2BQpn+I30kTI4LuAWPt/rKc5Pho5YhA/3hhO9vYIF0isASOp1ERfVFnCiTlaMkP12vQnS2X9GyNz/8TFrrsmoAdVbAWjpQY6depHNQBitio9ut06OMzgyjwqcvYCovX/okK6o89CABho1iyTJvmSL2xC+D2InfN5xZKaui2pgAkWj0l99g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4199 Return-Path: Tomas.Pilar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT038.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)(136003)(396003)(46966005)(478600001)(426003)(316002)(70206006)(5660300002)(36906005)(70586007)(6916009)(107886003)(8676002)(2616005)(54906003)(81166007)(47076004)(6666004)(86362001)(1076003)(82740400003)(82310400002)(36756003)(83380400001)(2906002)(4326008)(186003)(8936002)(336012)(26005);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 31ad2af7-a775-45d1-caf3-08d8177b6614 X-Forefront-PRVS: 04433051BF X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xaNenWKcAtJq7fnYZ9FH1HcaqJV/mdZuk8uvAJfCpAyKpmcAZN0JqrIy0Fx1ZDzptSh+sTj4y5xaUjw0oqiw/GngUzG43KCUFaG9iIZOo2IQqNdVhfuSz2ryF09eU3shhDVW0tp0En6WfmLKKqkul8wF2PHVOjf03/IqHYJpA6Yyl9eDigYznozsBjgkYRUs4E05V2Xaf1SdaAQR0DgNbn0RRFjI5fK/ZeZBekITBYoEldtuOLjoRhyd+qNmyRoiEUITbShUzkAiHQMxJeqR32u3ycgGOjdLpY9Mw/+Q8iC7a/fgog/uYweq901dn6EAvfj0Duc6AkakvSGcRY1ySuEy/3tfbzGSo2DS2xcs/8PsJUaTC8bpsUonokzTHgmFqi3rBgnPlHYySsQdNwFmKg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2020 13:43:31.5117 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19cdc5b2-18ff-43fc-07c6-08d8177b6b02 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-AuthSource: VE1EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5440 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 Reviewed-by: 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