From 29a294262159642c660004881afe5b4bbe97c353 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 8 Oct 2016 05:49:10 +0000 Subject: Various printf claim to report the PID, so actually report that and not the TID Build testing assistance from deraadt@ --- sys/arch/arm/arm/fault.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/arm') 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 -- cgit v1.2.3