From c35b9bdae7316474e01b5a2ba9dcf3631b975901 Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Mon, 6 Dec 2010 18:44:50 +0000 Subject: - drop NENTS(), which was yet another copy of nitems(). no binary change ok deraadt@ --- sys/kern/vfs_subr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 4a1882c9e94..f3488ca71e2 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.191 2010/09/10 16:34:08 thib Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.192 2010/12/06 18:44:49 jasper Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -2185,10 +2185,9 @@ vfs_vnode_print(void *v, int full, int (*pr)(const char *, ...)) { struct vnode *vp = v; -#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)? "":vtags[vp->v_tag], vp->v_tag, - vp->v_type > NENTS(vtypes)? "":vtypes[vp->v_type], + vp->v_tag > nitems(vtags)? "":vtags[vp->v_tag], vp->v_tag, + vp->v_type > nitems(vtypes)? "":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", -- cgit v1.2.3