diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-08 05:49:10 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-10-08 05:49:10 +0000 |
commit | 29a294262159642c660004881afe5b4bbe97c353 (patch) | |
tree | bf7375ba0b0e155f57b31b312ffbc267a9fc17b5 /sys/arch/arm | |
parent | fd60b00ccc9cd707e9e91296df00083e9a6b1ad9 (diff) |
Various printf claim to report the PID, so actually report that and not the TID
Build testing assistance from deraadt@
Diffstat (limited to 'sys/arch/arm')
-rw-r--r-- | sys/arch/arm/arm/fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/arm/fault.c b/sys/arch/arm/arm/fault.c index a2b48069ed1..a9322acf938 100644 --- a/sys/arch/arm/arm/fault.c +++ b/sys/arch/arm/arm/fault.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fault.c,v 1.23 2016/08/24 13:09:52 kettenis Exp $ */ +/* $OpenBSD: fault.c,v 1.24 2016/10/08 05:49:08 guenther Exp $ */ /* $NetBSD: fault.c,v 1.46 2004/01/21 15:39:21 skrll Exp $ */ /* @@ -422,7 +422,7 @@ data_abort_handler(trapframe_t *tf) sv.sival_ptr = (u_int32_t *)far; if (error == ENOMEM) { printf("UVM: pid %d (%s), uid %d killed: " - "out of swap\n", p->p_pid, p->p_comm, + "out of swap\n", p->p_p->ps_pid, p->p_comm, p->p_ucred ? (int)p->p_ucred->cr_uid : -1); sd.signo = SIGKILL; } else @@ -720,7 +720,7 @@ prefetch_abort_handler(trapframe_t *tf) sv.sival_ptr = (u_int32_t *)far; if (error == ENOMEM) { printf("UVM: pid %d (%s), uid %d killed: " - "out of swap\n", p->p_pid, p->p_comm, + "out of swap\n", p->p_p->ps_pid, p->p_comm, p->p_ucred ? (int)p->p_ucred->cr_uid : -1); trapsignal(p, SIGKILL, 0, SEGV_MAPERR, sv); } else |