]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Application/VariableInfo/VariableInfo.c
Clean up DEC files:
[mirror_edk2.git] / MdeModulePkg / Application / VariableInfo / VariableInfo.c
index 86117a63d1964a4d331700c020ed47a7a7a596b4..50b67d097480605c013e132d927d60124a8ce30b 100644 (file)
@@ -4,8 +4,8 @@
   an this utility will print out the information. You can use console redirection\r
   to capture the data.\r
   \r
-  Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
   http://opensource.org/licenses/bsd-license.php                                            \r
@@ -18,7 +18,7 @@
 #include <Uefi.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/UefiApplicationEntryPoint.h>\r
-#include <Guid/VariableInfo.h>\r
+#include <Guid/VariableFormat.h>\r
 \r
 \r
 /**\r
@@ -45,7 +45,7 @@ UefiMain (
   VARIABLE_INFO_ENTRY   *VariableInfo;\r
   VARIABLE_INFO_ENTRY   *Entry;\r
 \r
-  Status = EfiGetSystemConfigurationTable (&gEfiVariableInfoGuid, (VOID **)&Entry);\r
+  Status = EfiGetSystemConfigurationTable (&gEfiVariableGuid, (VOID **)&Entry);\r
   if (!EFI_ERROR (Status) && (Entry != NULL)) {\r
     Print (L"Non-Volatile EFI Variables:\n");\r
     VariableInfo = Entry;\r
@@ -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