diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-03-30 21:54:50 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-03-30 21:54:50 +0000 |
commit | 7462bb1b86b895dab1b1b555c941578365367199 (patch) | |
tree | 2be23589f75ab6cd1bd1180a4f063217d94820de /sys/arch/alpha | |
parent | 4eb2d12b27096ee78c5daf9473a287c1b1ea15f7 (diff) |
Eliminates struct pcred by moving the real and saved ugids into
struct ucred; struct process then directly links to the ucred
Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.
ok matthew@
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/trap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c index 4187e09b57b..e4003e60079 100644 --- a/sys/arch/alpha/alpha/trap.c +++ b/sys/arch/alpha/alpha/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.70 2014/03/26 05:23:42 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.71 2014/03/30 21:54:48 guenther Exp $ */ /* $NetBSD: trap.c,v 1.52 2000/05/24 16:48:33 thorpej Exp $ */ /*- @@ -463,10 +463,9 @@ do_fault: v = (caddr_t)a0; typ = SEGV_MAPERR; if (rv == ENOMEM) { - printf("UVM: pid %u (%s), uid %u killed: " - "out of swap\n", p->p_pid, p->p_comm, - p->p_cred && p->p_ucred ? - p->p_ucred->cr_uid : -1); + printf("UVM: pid %u (%s), uid %d killed: " + "out of swap\n", p->p_pid, p->p_comm, + p->p_ucred ? (int)p->p_ucred->cr_uid : -1); i = SIGKILL; } else { i = SIGSEGV; |