]> git.proxmox.com Git - mirror_edk2.git/commitdiff
update the usage help text on variable statistic information.
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Jun 2009 08:23:57 +0000 (08:23 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Jun 2009 08:23:57 +0000 (08:23 +0000)
VariableInfo application also is added a output string to help user know what happens.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8596 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Application/VariableInfo/VariableInfo.c
MdeModulePkg/Application/VariableInfo/VariableInfo.inf
MdeModulePkg/MdeModulePkg.dec

index ba4f553f4924dc54834c17e43c0e03b8200b77ad..ac92cc3b790cb1bb655267c96f07ae4a0f24d298 100644 (file)
@@ -82,6 +82,13 @@ UefiMain (
       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
index f963db57190b800a966d53e2bffd6b7aeba8c19f..7cadb231edd27131ac1836accdbf9873f7ca586c 100644 (file)
@@ -2,7 +2,9 @@
 #  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
index 0c8de2b5caef5abc257d2104a19442a6e378e462..8fdf10d3b56bebb87296f6d3ba8da32c034481bb 100644 (file)
     \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