mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/MtrrLib: Correct debug message
When printing the ascii format of memory attribute in debug message, %s was used, but %a should be used. The patch additionally changes %x to %r for EFI_STATUS. The whole patch doesn't impact functionality of the MtrrLib. Just debug message fix. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Cc: Ming Shao <ming.shao@intel.com>
This commit is contained in:
parent
a0460be7e8
commit
82b9570918
|
@ -2489,7 +2489,7 @@ MtrrSetMemoryAttributeInMtrrSettings (
|
|||
Range.Type = Attribute;
|
||||
ScratchSize = sizeof (Scratch);
|
||||
Status = MtrrSetMemoryAttributesInMtrrSettings (MtrrSetting, Scratch, &ScratchSize, &Range, 1);
|
||||
DEBUG ((DEBUG_CACHE, "MtrrSetMemoryAttribute(MtrrSettings = %p) %s: [%016lx, %016lx) - %x\n",
|
||||
DEBUG ((DEBUG_CACHE, "MtrrSetMemoryAttribute(MtrrSettings = %p) %a: [%016lx, %016lx) - %r\n",
|
||||
MtrrSetting,
|
||||
mMtrrMemoryCacheTypeShortName[Attribute], BaseAddress, BaseAddress + Length, Status));
|
||||
|
||||
|
|
Loading…
Reference in New Issue