MdeModulePkg: Update DumpImageRecord() in ImagePropertiesRecordLib
Update DumpImageRecord() to be DumpImageRecords(), and improve the debug output. The function will output at DEBUG_INFO instead, and the function will be run in DXE and SMM MAT logic when the MAT is installed at EndOfDxe on DEBUG builds. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Dandan Bi <dandan.bi@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Taylor Beebe <taylor.d.beebe@gmail.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
3565ee6c29
commit
4ec2fab279
@@ -496,9 +496,14 @@ SmmInstallMemoryAttributesTable (
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
DEBUG ((DEBUG_VERBOSE, "SMM Total Image Count - 0x%x\n", mImagePropertiesPrivateData.ImageRecordCount));
|
||||
DEBUG ((DEBUG_VERBOSE, "SMM Dump ImageRecord:\n"));
|
||||
DumpImageRecord (&mImagePropertiesPrivateData.ImageRecordList);
|
||||
DEBUG_CODE_BEGIN ();
|
||||
if ( mImagePropertiesPrivateData.ImageRecordCount > 0) {
|
||||
DEBUG ((DEBUG_INFO, "SMM - Total Runtime Image Count - 0x%x\n", mImagePropertiesPrivateData.ImageRecordCount));
|
||||
DEBUG ((DEBUG_INFO, "SMM - Dump Runtime Image Records:\n"));
|
||||
DumpImageRecords (&mImagePropertiesPrivateData.ImageRecordList);
|
||||
}
|
||||
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
PublishMemoryAttributesTable ();
|
||||
|
||||
|
Reference in New Issue
Block a user