]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuMpPei: Fix BistData ouput error
authorJeff Fan <jeff.fan@intel.com>
Fri, 9 Sep 2016 06:17:57 +0000 (14:17 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 14 Sep 2016 00:54:32 +0000 (08:54 +0800)
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>
UefiCpuPkg/CpuMpPei/CpuBist.c

index dae7d78f0411e9852b19d5b105945b785b3a26f1..f596237890511abc0d00edbacdcb863882a053a8 100644 (file)
@@ -250,7 +250,7 @@ CollectBistDataFromPpi (
         );\r
     }\r
     DEBUG ((EFI_D_INFO, "  APICID - 0x%08x, BIST - 0x%08x\n",\r
         );\r
     }\r
     DEBUG ((EFI_D_INFO, "  APICID - 0x%08x, BIST - 0x%08x\n",\r
-            ProcessorInfo.ProcessorId,\r
+            (UINT32) ProcessorInfo.ProcessorId,\r
             BistData\r
             ));\r
   }\r
             BistData\r
             ));\r
   }\r