summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-11-12 11:17:00 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-11-12 11:17:00 +0000
commit40a0d840e2e232ed4b3420393b3edb34025eb9a6 (patch)
treeedcbfa3fff254361b4fd3b3e2ed903a6f4862a6e /sys/dev
parente15de6373f2138d2ec2a3a4618030cfc1d2d8031 (diff)
Revert unrelated bits that snuck in previous.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vnd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 8ac0a7aca04..4a2f528a85b 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.160 2016/11/12 10:59:37 jca Exp $ */
+/* $OpenBSD: vnd.c,v 1.161 2016/11/12 11:16:59 jca Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -305,11 +305,11 @@ vndstrategy(struct buf *bp)
bp->b_bcount = ((origbcount + secsize - 1) & ~(secsize - 1));
#ifdef DIAGNOSTIC
if (bp->b_bcount != origbcount) {
- struct process *curpr = curproc->p_p;
+ struct proc *curp = curproc;
printf("%s: sloppy %s from proc %d (%s): "
"blkno %lld bcount %ld\n", sc->sc_dev.dv_xname,
(bp->b_flags & B_READ) ? "read" : "write",
- curpr->ps_pid, curpr->ps_comm,
+ curp->p_p->ps_pid, curp->p_comm,
(long long)bp->b_blkno, origbcount);
}
#endif