]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/AcpiView: Move table count reset
authorTomas Pilar <Tomas.Pilar@arm.com>
Fri, 19 Jun 2020 11:59:54 +0000 (12:59 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 30 Jun 2020 01:39:50 +0000 (01:39 +0000)
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>
ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c

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