#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
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
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