mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
5c88af795d
commit
ec16deeac9
|
@ -239,10 +239,10 @@ SecStartupPhase2(
|
||||||
|
|
||||||
DEBUG ((
|
DEBUG ((
|
||||||
DEBUG_INFO,
|
DEBUG_INFO,
|
||||||
"%a() Stack Base: 0x%lx, Stack Size: 0x%lx\n",
|
"%a() Stack Base: 0x%p, Stack Size: 0x%x\n",
|
||||||
__FUNCTION__,
|
__FUNCTION__,
|
||||||
SecCoreData->StackBase,
|
SecCoreData->StackBase,
|
||||||
SecCoreData->StackSize
|
(UINT32) SecCoreData->StackSize
|
||||||
));
|
));
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue