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 <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
e1879e35cd
commit
6b02e32904
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue