diff options
author | kib <kib@FreeBSD.org> | 2011-11-19 07:40:13 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-11-19 07:40:13 +0000 |
commit | c537bf125e0cb426d753792f2f034aca51bb5822 (patch) | |
tree | 208f5f494eb6305f026ac5cb412abe3c262ac7ee /sys/fs/nullfs/null_subr.c | |
parent | fc59d958e3db8627923996e3d4d7d6a083c79644 (diff) | |
download | FreeBSD-src-c537bf125e0cb426d753792f2f034aca51bb5822.zip FreeBSD-src-c537bf125e0cb426d753792f2f034aca51bb5822.tar.gz |
Use the plain panic calls, without additional printing around them.
The debugger and dumping support is adequate.
Tested by: pho
MFC after: 1 week
Diffstat (limited to 'sys/fs/nullfs/null_subr.c')
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index 5717a01..a45ccf7 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -289,22 +289,12 @@ null_checkvp(vp, fil, lno) #endif if (a->null_lowervp == NULLVP) { /* Should never happen */ - int i; u_long *p; - printf("vp = %p, ZERO ptr\n", (void *)vp); - for (p = (u_long *) a, i = 0; i < 8; i++) - printf(" %lx", p[i]); - printf("\n"); - panic("null_checkvp"); + panic("null_checkvp %p", vp); } VI_LOCK_FLAGS(a->null_lowervp, MTX_DUPOK); - if (a->null_lowervp->v_usecount < 1) { - int i; u_long *p; - printf("vp = %p, unref'ed lowervp\n", (void *)vp); - for (p = (u_long *) a, i = 0; i < 8; i++) - printf(" %lx", p[i]); - printf("\n"); - panic ("null with unref'ed lowervp"); - } + if (a->null_lowervp->v_usecount < 1) + panic ("null with unref'ed lowervp, vp %p lvp %p", + vp, a->null_lowervp); VI_UNLOCK(a->null_lowervp); #ifdef notyet printf("null %x/%d -> %x/%d [%s, %d]\n", |