From: Tomas Pilar Date: Fri, 19 Jun 2020 11:59:54 +0000 (+0100) Subject: ShellPkg/AcpiView: Move table count reset X-Git-Tag: edk2-stable202008~297 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e46e3040fc3b39dcade8b88cdc02565ff6b26374 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 Cc: Zhichao Gao Reviewed-by: Zhichao Gao Signed-off-by: Tomas Pilar --- diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c index b068dd4d27..40778374af 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;