diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-12-07 10:48:04 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-12-11 14:14:47 +0800 |
commit | 82b95709185c15f68c9c254f652ffe46ebbba239 (patch) | |
tree | 5f7a9b4148d8562adfefe61a72968739a740302c /UefiCpuPkg | |
parent | a0460be7e88539649cd10139491dd6955c54fb14 (diff) | |
download | edk2-82b95709185c15f68c9c254f652ffe46ebbba239.zip edk2-82b95709185c15f68c9c254f652ffe46ebbba239.tar.gz edk2-82b95709185c15f68c9c254f652ffe46ebbba239.tar.bz2 |
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>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r-- | UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c index 9c66f93..619b500 100644 --- a/UefiCpuPkg/Library/MtrrLib/MtrrLib.c +++ b/UefiCpuPkg/Library/MtrrLib/MtrrLib.c @@ -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));
|