summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-07 15:24:06 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2018-05-07 15:24:06 +0000
commit2737e295071b9ee276ea1a3c59a9077e8008ded4 (patch)
tree4d442315890a859f3301e221b6a4f0b4c3f49d2d /sys/kern
parente0c6a6d1fe222131b2c6f6140212321c02e20f0d (diff)
Print the vp pointer in the vinvalbuf() panic strings.
OK mpi@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ed70164c0b5..f600bcff117 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.269 2018/05/02 02:24:56 visa Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.270 2018/05/07 15:24:05 bluhm Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -1852,7 +1852,7 @@ vinvalbuf(struct vnode *vp, int flags, struct ucred *cred, struct proc *p,
#ifdef VFSLCKDEBUG
if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp))
- panic("vinvalbuf(): vp isn't locked");
+ panic("%s: vp isn't locked, vp %p", __func__, vp);
#endif
if (flags & V_SAVE) {
@@ -1865,7 +1865,7 @@ vinvalbuf(struct vnode *vp, int flags, struct ucred *cred, struct proc *p,
s = splbio();
if (vp->v_numoutput > 0 ||
!LIST_EMPTY(&vp->v_dirtyblkhd))
- panic("vinvalbuf: dirty bufs");
+ panic("%s: dirty bufs, vp %p", __func__, vp);
}
splx(s);
}
@@ -1917,7 +1917,7 @@ loop:
}
if (!(flags & V_SAVEMETA) &&
(!LIST_EMPTY(&vp->v_dirtyblkhd) || !LIST_EMPTY(&vp->v_cleanblkhd)))
- panic("vinvalbuf: flush failed");
+ panic("%s: flush failed, vp %p", __func__, vp);
splx(s);
return (0);
}