From 2bda62478fb93049162eb0232472574309b85a60 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Tue, 15 Aug 2017 11:34:56 +0800 Subject: [PATCH] UefiCpuPkg RegisterCpuFeaturesLib: Enhance debug messages. Current debug message when enable/disable CPU feature not correct. This patch enhances it to make it more accurate. Cc: Ruiyu Ni Cc: Shao, Ming Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong Reviewed-by: Ruiyu Ni --- .../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c index 54c98272ac..474aea31e9 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c @@ -528,9 +528,9 @@ AnalysisProcessorFeatures ( // SupportedMaskCleanBit (CpuFeaturesData->SettingPcds, CpuFeatureInOrder->FeatureMask); if (CpuFeatureInOrder->FeatureName != NULL) { - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name = %a.\n", CpuFeatureInOrder->FeatureName)); + DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature: Name = %a.\n", CpuFeatureInOrder->FeatureName)); } else { - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask = ")); + DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature: Mask = ")); DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask); } } @@ -538,9 +538,9 @@ AnalysisProcessorFeatures ( Status = CpuFeatureInOrder->InitializeFunc (ProcessorNumber, CpuInfo, CpuFeatureInOrder->ConfigData, FALSE); if (EFI_ERROR (Status)) { if (CpuFeatureInOrder->FeatureName != NULL) { - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Name = %a.\n", CpuFeatureInOrder->FeatureName)); + DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature: Name = %a.\n", CpuFeatureInOrder->FeatureName)); } else { - DEBUG ((DEBUG_WARN, "Warning :: Failed to enable Feature Mask = ")); + DEBUG ((DEBUG_WARN, "Warning :: Failed to disable Feature: Mask = ")); DumpCpuFeatureMask (CpuFeatureInOrder->FeatureMask); } }