diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-11-15 16:29:22 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-11-18 09:43:53 +0800 |
commit | ec16deeac90e4b8014394be58a229f6aa8c493af (patch) | |
tree | ef8edce62c1a7d91838afd6de16971fa84dca396 /UefiCpuPkg | |
parent | 5c88af795dadb81c9fe43af813b7b6d69bc5e0e4 (diff) | |
download | edk2-ec16deeac90e4b8014394be58a229f6aa8c493af.tar.gz edk2-ec16deeac90e4b8014394be58a229f6aa8c493af.tar.bz2 edk2-ec16deeac90e4b8014394be58a229f6aa8c493af.zip |
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>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r-- | UefiCpuPkg/SecCore/SecMain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index 2ebbc22d0a..077d0db49f 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -239,10 +239,10 @@ SecStartupPhase2( DEBUG ((
DEBUG_INFO,
- "%a() Stack Base: 0x%lx, Stack Size: 0x%lx\n",
+ "%a() Stack Base: 0x%p, Stack Size: 0x%x\n",
__FUNCTION__,
SecCoreData->StackBase,
- SecCoreData->StackSize
+ (UINT32) SecCoreData->StackSize
));
//
|