ShellPkg/AcpiView: Move table count reset

The table count module level symbols are now reset when
executing the core method, rather than the shell command
wrapper.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Tomas Pilar <tomas.pilar@arm.com>
This commit is contained in:
Tomas Pilar 2020-06-19 12:59:54 +01:00 committed by mergify[bot]
parent e18ac66d84
commit e46e3040fc
1 changed files with 5 additions and 3 deletions

View File

@ -255,6 +255,10 @@ AcpiView (
EfiConfigurationTable = NULL;
OriginalAttribute = 0;
// Reset Table counts
mTableCount = 0;
mBinTableCount = 0;
// Reset The error/warning counters
ResetErrorCount ();
ResetWarningCount ();
@ -390,9 +394,7 @@ ShellCommandRunAcpiView (
CONST CHAR16* MandatoryTableSpecStr;
CONST CHAR16 *SelectedTableName;
// Set Defaults
mTableCount = 0;
mBinTableCount = 0;
// Set configuration defaults
AcpiConfigSetDefaults ();
ShellStatus = SHELL_SUCCESS;