From 6b02e3290482eada40842769a19459f01796c0e0 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 15 Feb 2022 11:28:47 +0800 Subject: [PATCH] arch/sim: Remove 08 from the format string in up_vfork to make the code more general for both x86 and x64. Signed-off-by: Xiang Xiao --- arch/sim/src/sim/up_vfork.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/sim/src/sim/up_vfork.c b/arch/sim/src/sim/up_vfork.c index 35f3f5f5d9..3945132e62 100644 --- a/arch/sim/src/sim/up_vfork.c +++ b/arch/sim/src/sim/up_vfork.c @@ -93,7 +93,7 @@ pid_t up_vfork(const xcpt_reg_t *context) xcpt_reg_t stackutil; sinfo("vfork context [%p]:\n", context); - sinfo(" frame pointer:%08lx sp:%08lx pc:%08lx\n", + sinfo(" frame pointer:%lx sp:%lx pc:%lx\n", context[JB_FP], context[JB_SP], context[JB_PC]); /* Allocate and initialize a TCB for the child task. */ @@ -144,9 +144,9 @@ pid_t up_vfork(const xcpt_reg_t *context) newfp = context[JB_FP]; } - sinfo("Old stack top:%08lx SP:%08lx FP:%08lx\n", + sinfo("Old stack top:%lx SP:%lx FP:%lx\n", stacktop, context[JB_SP], context[JB_FP]); - sinfo("New stack top:%08lx SP:%08lx FP:%08lx\n", + sinfo("New stack top:%lx SP:%lx FP:%lx\n", newtop, newsp, newfp); /* Update the stack pointer, frame pointer, and volatile registers. When