From 86ed6d45ac981df24ef05bed655c7a8c213ff35f Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Wed, 18 Sep 2002 20:42:04 +0000 Subject: Remove any VOP_PRINT that redundantly prints the tag. Move lockmgr_printinfo() into vprint() for everyone's benefit. Suggested by: bde --- sys/kern/vfs_subr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 933a17f5704d..2e7745564619 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); } } -- cgit v1.3