summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Application/VariableInfo/VariableInfo.c7
-rw-r--r--MdeModulePkg/Application/VariableInfo/VariableInfo.inf4
-rw-r--r--MdeModulePkg/MdeModulePkg.dec4
3 files changed, 13 insertions, 2 deletions
diff --git a/MdeModulePkg/Application/VariableInfo/VariableInfo.c b/MdeModulePkg/Application/VariableInfo/VariableInfo.c
index ba4f553f49..ac92cc3b79 100644
--- a/MdeModulePkg/Application/VariableInfo/VariableInfo.c
+++ b/MdeModulePkg/Application/VariableInfo/VariableInfo.c
@@ -82,6 +82,13 @@ UefiMain (
VariableInfo = VariableInfo->Next;
} while (VariableInfo != NULL);
+ } else {
+ Print (L"Warning: Variable Dxe driver doesn't enable the feature of statistical information!\n");
+ Print (L"If you want to see this info, please:\n");
+ Print (L" 1. Set PcdVariableCollectStatistics as TRUE\n");
+ Print (L" 2. Rebuild Variable Dxe driver\n");
+ Print (L" 3. Run \"VariableInfo\" cmd again\n");
+
}
return Status;
diff --git a/MdeModulePkg/Application/VariableInfo/VariableInfo.inf b/MdeModulePkg/Application/VariableInfo/VariableInfo.inf
index f963db5719..7cadb231ed 100644
--- a/MdeModulePkg/Application/VariableInfo/VariableInfo.inf
+++ b/MdeModulePkg/Application/VariableInfo/VariableInfo.inf
@@ -2,7 +2,9 @@
# Sample UEFI Application Reference Module.
# This is a shell application that will display statistical information about variable
# usage.
-#
+# Note that if Variable Dxe driver doesn't enable the feature by setting PcdVariableCollectStatistics
+# as TRUE, The application will not display variable statistical information.
+#
# Copyright (c) 2007 - 2008, Intel Corporation.
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
index 0c8de2b5ca..8fdf10d3b5 100644
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -169,7 +169,9 @@
## If TRUE, enable the statistic functionality about variable usage. Such information is
# stored as a vendor configuration table into the EFI system table.
- # If user wants to get variable usage info, this pcd should be set as TRUE.
+ # If user wants to use VariableInfo application in MdeModulePkg\Application directory to get
+ # variable usage info, this pcd should be set as TRUE. Otherwise VariableInfo application can
+ # not output useful info.
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f
## If TRUE, Unicode Collation Protocol will be installed.