diff options
author | Tomas Pilar <Tomas.Pilar@arm.com> | 2020-06-19 12:59:54 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-06-30 01:39:50 +0000 |
commit | e46e3040fc3b39dcade8b88cdc02565ff6b26374 (patch) | |
tree | c7e2d0fda726cff176f2886cc584df9e3ea3e877 /ShellPkg | |
parent | e18ac66d84e68387dbbe4fd8761b8f3a889534a9 (diff) | |
download | edk2-e46e3040fc3b39dcade8b88cdc02565ff6b26374.zip edk2-e46e3040fc3b39dcade8b88cdc02565ff6b26374.tar.gz edk2-e46e3040fc3b39dcade8b88cdc02565ff6b26374.tar.bz2 |
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>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c index b068dd4..4077837 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c @@ -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;
|