UefiCpuPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767 Update use of DEBUG_CODE(Expression) if Expression is a complex code block with if/while/for/case statements that use {}. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
f9f4fb2329
commit
7c2a6033c1
@@ -636,7 +636,7 @@ AnalysisProcessorFeatures (
|
||||
//
|
||||
// Dump the last CPU feature list
|
||||
//
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
DEBUG ((DEBUG_INFO, "Last CPU features list...\n"));
|
||||
Entry = GetFirstNode (&CpuFeaturesData->FeatureList);
|
||||
while (!IsNull (&CpuFeaturesData->FeatureList, Entry)) {
|
||||
@@ -659,7 +659,7 @@ AnalysisProcessorFeatures (
|
||||
DumpCpuFeatureMask (PcdGetPtr (PcdCpuFeaturesSetting), CpuFeaturesData->BitMaskSize);
|
||||
DEBUG ((DEBUG_INFO, "Final PcdCpuFeaturesSetting:\n"));
|
||||
DumpCpuFeatureMask (CpuFeaturesData->SettingPcd, CpuFeaturesData->BitMaskSize);
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
//
|
||||
// Save PCDs and display CPU PCDs
|
||||
@@ -1190,4 +1190,3 @@ CpuFeaturesDetect (
|
||||
|
||||
AnalysisProcessorFeatures (CpuFeaturesData->NumberOfCpus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user