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:
Xiang Xiao 2022-02-15 11:28:47 +08:00 committed by Petro Karashchenko
parent e1879e35cd
commit 6b02e32904
1 changed files with 3 additions and 3 deletions

View File

@ -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