mirror of https://github.com/acidanthera/audk.git
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 <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>
This commit is contained in:
parent
32076515e5
commit
2bda62478f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue