Fix build on ARM (and probably other platforms)
This commit is contained in:
parent
3ada2d599e
commit
7fc3ae51f3
@ -78,7 +78,7 @@ syscallenter(struct thread *td, struct syscall_args *sa)
|
||||
ktrsyscall(sa->code, sa->narg, sa->args);
|
||||
#endif
|
||||
KTR_START4(KTR_SYSC, "syscall", syscallname(p, sa->code),
|
||||
td, "pid:%d", td->td_proc->p_pid, "arg0:%p", sa->args[0],
|
||||
(uintptr_t)td, "pid:%d", td->td_proc->p_pid, "arg0:%p", sa->args[0],
|
||||
"arg1:%p", sa->args[1], "arg2:%p", sa->args[2]);
|
||||
|
||||
if (error == 0) {
|
||||
@ -152,7 +152,7 @@ syscallenter(struct thread *td, struct syscall_args *sa)
|
||||
}
|
||||
retval:
|
||||
KTR_STOP4(KTR_SYSC, "syscall", syscallname(p, sa->code),
|
||||
td, "pid:%d", td->td_proc->p_pid, "error:%d", error,
|
||||
(uintptr_t)td, "pid:%d", td->td_proc->p_pid, "error:%d", error,
|
||||
"retval0:%#lx", td->td_retval[0], "retval1:%#lx",
|
||||
td->td_retval[1]);
|
||||
if (traced) {
|
||||
|
@ -270,7 +270,7 @@ while ((getline < srcfile) > 0) {
|
||||
ctrargs = 4;
|
||||
else
|
||||
ctrargs = numargs;
|
||||
ctrstr = ctrargs "(KTR_VOP, \"VOP\", \"" uname "\", a,\n\t ";
|
||||
ctrstr = ctrargs "(KTR_VOP, \"VOP\", \"" uname "\", (uintptr_t)a,\n\t ";
|
||||
ctrstr = ctrstr "\"" args[0] ":0x%jX\", (uintptr_t)a->a_" args[0];
|
||||
for (i = 1; i < ctrargs; ++i)
|
||||
ctrstr = ctrstr ", \"" args[i] ":0x%jX\", a->a_" args[i];
|
||||
|
Loading…
Reference in New Issue
Block a user