diff options
-rw-r--r-- | sys/kern/subr_syscall.c | 4 | ||||
-rw-r--r-- | sys/tools/vnode_if.awk | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_syscall.c b/sys/kern/subr_syscall.c index 3dcfcf5..3d6dc5a 100644 --- a/sys/kern/subr_syscall.c +++ b/sys/kern/subr_syscall.c @@ -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) { diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk index fc12ce9..c991458 100644 --- a/sys/tools/vnode_if.awk +++ b/sys/tools/vnode_if.awk @@ -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]; |