summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2004-07-12 04:13:38 +0000
committeralfred <alfred@FreeBSD.org>2004-07-12 04:13:38 +0000
commit45c9fe9da751a37578e52b51cf2e863c1d025643 (patch)
treeb228534cf51071d2373f53ca250fbe047404cc8f /sys/kern
parentde2b49b3bc9c3cae6b754fd74467daef6df83a53 (diff)
downloadFreeBSD-src-45c9fe9da751a37578e52b51cf2e863c1d025643.zip
FreeBSD-src-45c9fe9da751a37578e52b51cf2e863c1d025643.tar.gz
Dump the actual bad values when this assertion is tripped.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 9745d4a..c0dff88 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2370,7 +2370,9 @@ loop:
*/
VI_LOCK(rootvp);
KASSERT(busy > 0, ("vflush: not busy"));
- KASSERT(rootvp->v_usecount >= rootrefs, ("vflush: rootrefs"));
+ KASSERT(rootvp->v_usecount >= rootrefs,
+ ("vflush: usecount %d < rootrefs %d",
+ rootvp->v_usecount, rootrefs));
if (busy == 1 && rootvp->v_usecount == rootrefs) {
vgonel(rootvp, td);
busy = 0;
OpenPOWER on IntegriCloud