summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2002-09-18 20:42:04 +0000
committernjl <njl@FreeBSD.org>2002-09-18 20:42:04 +0000
commit00c79f5c92eb1bef381fbc7e267b6e746fab0f9c (patch)
treef0e827f562fb4c2d3c293425604e0245216e83ae /sys/kern/vfs_subr.c
parent74315d9b540e11ecbf585c1223bd70f0e956c55d (diff)
downloadFreeBSD-src-00c79f5c92eb1bef381fbc7e267b6e746fab0f9c.zip
FreeBSD-src-00c79f5c92eb1bef381fbc7e267b6e746fab0f9c.tar.gz
Remove any VOP_PRINT that redundantly prints the tag.
Move lockmgr_printinfo() into vprint() for everyone's benefit. Suggested by: bde
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 933a17f..2e77455 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2617,9 +2617,9 @@ vprint(label, vp)
printf("%s: %p: ", label, (void *)vp);
else
printf("%p: ", (void *)vp);
- printf("type %s, usecount %d, writecount %d, refcount %d,",
- typename[vp->v_type], vp->v_usecount, vp->v_writecount,
- vp->v_holdcnt);
+ printf("tag %s, type %s, usecount %d, writecount %d, refcount %d,",
+ vp->v_tag, typename[vp->v_type], vp->v_usecount,
+ vp->v_writecount, vp->v_holdcnt);
buf[0] = '\0';
if (vp->v_vflag & VV_ROOT)
strcat(buf, "|VV_ROOT");
@@ -2640,11 +2640,11 @@ vprint(label, vp)
if (vp->v_vflag & VV_OBJBUF)
strcat(buf, "|VV_OBJBUF");
if (buf[0] != '\0')
- printf(" flags (%s)", &buf[1]);
- if (vp->v_data == NULL) {
- printf("\n");
- } else {
- printf("\n\t");
+ printf(" flags (%s),", &buf[1]);
+ lockmgr_printinfo(&vp->v_lock);
+ printf("\n");
+ if (vp->v_data != NULL) {
+ printf("\t");
VOP_PRINT(vp);
}
}
OpenPOWER on IntegriCloud