summaryrefslogtreecommitdiff
path: root/sys/dev/vnd.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-10-08 05:52:07 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-10-08 05:52:07 +0000
commitd44367aeca165fc751609e0c6b01a4af7a003845 (patch)
treec5b982a2a0bd01801b7ed118903ded0792feef3b /sys/dev/vnd.c
parent29a294262159642c660004881afe5b4bbe97c353 (diff)
Various printf claim to report the PID, so actually report that and not the TID
ok kettenis@ tedu@
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r--sys/dev/vnd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 1616dc39efc..948303ecede 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.158 2016/03/19 12:04:15 natano Exp $ */
+/* $OpenBSD: vnd.c,v 1.159 2016/10/08 05:52:06 guenther Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -305,12 +305,12 @@ vndstrategy(struct buf *bp)
bp->b_bcount = ((origbcount + secsize - 1) & ~(secsize - 1));
#ifdef DIAGNOSTIC
if (bp->b_bcount != origbcount) {
- struct proc *pr = curproc;
+ 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",
- pr->p_pid, pr->p_comm, (long long)bp->b_blkno,
- origbcount);
+ curp->p_p->ps_pid, curp->p_comm,
+ (long long)bp->b_blkno, origbcount);
}
#endif
}