]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/SecCore: Correct print format for stack information
authorJeff Fan <jeff.fan@intel.com>
Tue, 15 Nov 2016 08:29:22 +0000 (16:29 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 18 Nov 2016 01:43:53 +0000 (09:43 +0800)
commitec16deeac90e4b8014394be58a229f6aa8c493af
treeef8edce62c1a7d91838afd6de16971fa84dca396
parent5c88af795dadb81c9fe43af813b7b6d69bc5e0e4
UefiCpuPkg/SecCore: Correct print format for stack information

v2:
  Per Laszlo and Andrew's comments at
    https://lists.01.org/pipermail/edk2-devel/2016-November/004759.html
  SecCoreData->StackBase is VOID * type. We should use %p to dump VOID * type.
  SecCoreData->StackSize is UINTN type, but %x only could print unsinged-int
  type. We will cast it to UINT32 firstly and then use %x to print it.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/SecCore/SecMain.c