diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2011-06-24 22:48:37 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2011-06-24 22:48:37 +0000 |
commit | 58edb393d22b65a7dbf37013f0b307ed81aa8b96 (patch) | |
tree | ed2eeaf888f7de59d2fdc4d248efce3ba2eadde0 /sys | |
parent | f372f6cf11932d65e1f5adece4528ee74b93782a (diff) |
printf -> DPRINTF in the SIGKILL path
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/systrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index c15302365d8..41973126df4 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.56 2011/06/23 16:02:33 tedu Exp $ */ +/* $OpenBSD: systrace.c,v 1.57 2011/06/24 22:48:36 djm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -727,7 +727,8 @@ systrace_redirect(int code, struct proc *p, void *v, register_t *retval) rw_exit_write(&fst->lock); if (policy == SYSTR_POLICY_KILL) { error = EPERM; - printf("systrace: killed on syscall %d\n", code); + DPRINTF(("systrace: pid %u killed on syscall %d\n", + p->p_pid, code)); psignal(p, SIGKILL); } else if (policy == SYSTR_POLICY_PERMIT) error = (*callp->sy_call)(p, v, retval); |