diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-09-09 14:17:57 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-09-14 08:54:32 +0800 |
commit | 8dc56ddeca490999ee0e256c4f2c42e7cb20a84d (patch) | |
tree | c8274d01d83db90af56bdc024900eb2f5dff492d | |
parent | dfb0e6591b31f894cc6abfc028ddcd1a161dbb48 (diff) | |
download | edk2-platforms-8dc56ddeca490999ee0e256c4f2c42e7cb20a84d.tar.xz |
UefiCpuPkg/CpuMpPei: Fix BistData ouput error
ProcessorInfo.ProcessorId is UINT64 type even it's valid value is UINT32. Use %x
only output the low 4 bytes and keep the high 4 bytes in stack that will be
output as the second parameter BistData. Typecast ProcessorInfo.ProcessorId to
UINT32 could make BistData output correctly.
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@Intel.com>
-rw-r--r-- | UefiCpuPkg/CpuMpPei/CpuBist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuBist.c b/UefiCpuPkg/CpuMpPei/CpuBist.c index dae7d78f04..f596237890 100644 --- a/UefiCpuPkg/CpuMpPei/CpuBist.c +++ b/UefiCpuPkg/CpuMpPei/CpuBist.c @@ -250,7 +250,7 @@ CollectBistDataFromPpi ( );
}
DEBUG ((EFI_D_INFO, " APICID - 0x%08x, BIST - 0x%08x\n",
- ProcessorInfo.ProcessorId,
+ (UINT32) ProcessorInfo.ProcessorId,
BistData
));
}
|