diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2006-10-30 00:34:02 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2006-10-30 00:34:02 +0000 |
commit | b43300e37bfb645bc4a7b2fac5532d8fa8d4ead4 (patch) | |
tree | d34fd27f6b804adb0d4b86de7b948d7434695b94 /sys/kern | |
parent | 5e529ac31922bb759b341e97ed9595ae9d9e1971 (diff) |
use vp->v_type to index into vtypes rather then vp->v_tag,
fixing odd output in the 'show vnode' ddb code.
ok mickey@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 882b2724e94..463a0dd15da 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.133 2006/07/11 21:17:58 mickey Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.134 2006/10/30 00:34:01 thib Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -2304,8 +2304,8 @@ vfs_vnode_print(struct vnode *vp, int full, int (*pr)(const char *, ...)) #define NENTS(n) (sizeof n / sizeof(n[0])) (*pr)("tag %s(%d) type %s(%d) mount %p typedata %p\n", vp->v_tag > NENTS(vtags)? "<unk>":vtags[vp->v_tag], vp->v_tag, - vp->v_type > NENTS(vtypes)? "<unk>":vtypes[vp->v_tag],vp->v_type, - vp->v_mount, vp->v_mountedhere); + vp->v_type > NENTS(vtypes)? "<unk>":vtypes[vp->v_type], + vp->v_type, vp->v_mount, vp->v_mountedhere); (*pr)("data %p usecount %d writecount %ld holdcnt %ld numoutput %d\n", vp->v_data, vp->v_usecount, vp->v_writecount, |