]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg RegisterCpuFeaturesLib: Enhance debug messages.
authorEric Dong <eric.dong@intel.com>
Tue, 15 Aug 2017 03:34:56 +0000 (11:34 +0800)
committerEric Dong <eric.dong@intel.com>
Wed, 16 Aug 2017 08:16:18 +0000 (16:16 +0800)
Current debug message when enable/disable CPU feature not
correct. This patch enhances it to make it more accurate.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Shao, Ming <ming.shao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c

index 54c98272acd841f2b6972d2e6edb4e4ec64b72f6..474aea31e950e715c9cd00a7f5f5be57de0ab8bb 100644 (file)
@@ -528,9 +528,9 @@ AnalysisProcessorFeatures (
           //\r
           SupportedMaskCleanBit (CpuFeaturesData->SettingPcds, CpuFeatureInOrder->FeatureMask);\r
           if (CpuFeatureInOrder->FeatureName != NULL) {\r
-            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name = %a.\n", CpuFeatureInOrder->FeatureName));\r
+            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature: Name = %a.\n", CpuFeatureInOrder->FeatureName));\r
           } else {\r
-            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask = "));\r
+            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature: Mask = "));\r
             DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask);\r
           }\r
         }\r
@@ -538,9 +538,9 @@ AnalysisProcessorFeatures (
         Status = CpuFeatureInOrder->InitializeFunc (ProcessorNumber, CpuInfo, CpuFeatureInOrder->ConfigData, FALSE);\r
         if (EFI_ERROR (Status)) {\r
           if (CpuFeatureInOrder->FeatureName != NULL) {\r
-            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name = %a.\n", CpuFeatureInOrder->FeatureName));\r
+            DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature: Name = %a.\n", CpuFeatureInOrder->FeatureName));\r
           } else {\r
-            DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask = "));\r
+            DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature: Mask = "));\r
             DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask);\r
           }\r
         }\r