]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier
authorZeng, Star <star.zeng@intel.com>
Tue, 4 Feb 2020 07:02:04 +0000 (15:02 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 19 Feb 2020 05:36:42 +0000 (05:36 +0000)
commitc73fce3d1280423212ed9c43bba17ef90363c354
tree9e7b5049c22e98b42e317c5643c6a72731c181c1
parent3cf658ee7ea7dc302cf7426e031ade7cf1801d73
UefiCpuPkg RegisterCpuFeaturesLib: Match data type and format specifier

Match data type and format specifier for printing.
1. Type cast ProcessorNumber and FeatureIndex to UINT32
  as %d only expects a UINT32.
2. Use %08x instead of %08lx for CacheControl to print Index
  as it is UINT32 type.
3. Use %016lx instead of %08lx for MemoryMapped to print
  (Index | LShiftU64 (HighIndex, 32)) as it is UINT64 type.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c