VariableInfo = VariableInfo->Next;\r
} while (VariableInfo != NULL);\r
\r
+ } else {\r
+ Print (L"Warning: Variable Dxe driver doesn't enable the feature of statistical information!\n");\r
+ Print (L"If you want to see this info, please:\n");\r
+ Print (L" 1. Set PcdVariableCollectStatistics as TRUE\n");\r
+ Print (L" 2. Rebuild Variable Dxe driver\n");\r
+ Print (L" 3. Run \"VariableInfo\" cmd again\n");\r
+\r
}\r
\r
return Status;\r
# Sample UEFI Application Reference Module.\r
# This is a shell application that will display statistical information about variable\r
# usage.\r
-# \r
+# Note that if Variable Dxe driver doesn't enable the feature by setting PcdVariableCollectStatistics\r
+# as TRUE, The application will not display variable statistical information.\r
+#\r
# Copyright (c) 2007 - 2008, Intel Corporation.\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
\r
## If TRUE, enable the statistic functionality about variable usage. Such information is\r
# stored as a vendor configuration table into the EFI system table.\r
- # If user wants to get variable usage info, this pcd should be set as TRUE.\r
+ # If user wants to use VariableInfo application in MdeModulePkg\Application directory to get\r
+ # variable usage info, this pcd should be set as TRUE. Otherwise VariableInfo application can \r
+ # not output useful info.\r
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f\r
\r
## If TRUE, Unicode Collation Protocol will be installed.\r