From e46e3040fc3b39dcade8b88cdc02565ff6b26374 Mon Sep 17 00:00:00 2001 From: Tomas Pilar Date: Fri, 19 Jun 2020 12:59:54 +0100 Subject: 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 --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiView.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ShellPkg') 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; -- cgit v1.2.3