From 8dc56ddeca490999ee0e256c4f2c42e7cb20a84d Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Fri, 9 Sep 2016 14:17:57 +0800 Subject: [PATCH] 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 Cc: Feng Tian Cc: Giri P Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian --- UefiCpuPkg/CpuMpPei/CpuBist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )); } -- 2.39.2