From 45c9fe9da751a37578e52b51cf2e863c1d025643 Mon Sep 17 00:00:00 2001 From: alfred Date: Mon, 12 Jul 2004 04:13:38 +0000 Subject: [PATCH] Dump the actual bad values when this assertion is tripped. --- sys/kern/vfs_subr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 9745d4a2cbf0..c0dff887c49e 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;