Date: Fri, 6 Feb 2009 20:06:48 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188244 - in head/sys: fs/fifofs kern Message-ID: <200902062006.n16K6mNa070274@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Fri Feb 6 20:06:48 2009 New Revision: 188244 URL: http://svn.freebsd.org/changeset/base/188244 Log: Tweak the output of VOP_PRINT/vn_printf() some. - Align the fifo output in fifo_print() with other vn_printf() output. - Remove the leading space from lockmgr_printinfo() so its output lines up in vn_printf(). - lockmgr_printinfo() now ends with a newline, so remove an extra newline from vn_printf(). Modified: head/sys/fs/fifofs/fifo_vnops.c head/sys/kern/kern_lock.c head/sys/kern/vfs_bio.c head/sys/kern/vfs_subr.c Modified: head/sys/fs/fifofs/fifo_vnops.c ============================================================================== --- head/sys/fs/fifofs/fifo_vnops.c Fri Feb 6 18:16:01 2009 (r188243) +++ head/sys/fs/fifofs/fifo_vnops.c Fri Feb 6 20:06:48 2009 (r188244) @@ -468,6 +468,7 @@ fifo_print(ap) struct vnode *a_vp; } */ *ap; { + printf(" "); fifo_printinfo(ap->a_vp); printf("\n"); return (0); Modified: head/sys/kern/kern_lock.c ============================================================================== --- head/sys/kern/kern_lock.c Fri Feb 6 18:16:01 2009 (r188243) +++ head/sys/kern/kern_lock.c Fri Feb 6 20:06:48 2009 (r188244) @@ -897,14 +897,14 @@ lockmgr_printinfo(struct lock *lk) uintptr_t x; if (lk->lk_lock == LK_UNLOCKED) - printf(" lock type %s: UNLOCKED\n", lk->lock_object.lo_name); + printf("lock type %s: UNLOCKED\n", lk->lock_object.lo_name); else if (lk->lk_lock & LK_SHARE) - printf(" lock type %s: SHARED (count %ju)\n", + printf("lock type %s: SHARED (count %ju)\n", lk->lock_object.lo_name, (uintmax_t)LK_SHARERS(lk->lk_lock)); else { td = lockmgr_xholder(lk); - printf(" lock type %s: EXCL by thread %p (pid %d)\n", + printf("lock type %s: EXCL by thread %p (pid %d)\n", lk->lock_object.lo_name, td, td->td_proc->p_pid); } Modified: head/sys/kern/vfs_bio.c ============================================================================== --- head/sys/kern/vfs_bio.c Fri Feb 6 18:16:01 2009 (r188243) +++ head/sys/kern/vfs_bio.c Fri Feb 6 20:06:48 2009 (r188244) @@ -3920,6 +3920,7 @@ DB_SHOW_COMMAND(buffer, db_show_buffer) } db_printf("\n"); } + db_printf(" "); lockmgr_printinfo(&bp->b_lock); } Modified: head/sys/kern/vfs_subr.c ============================================================================== --- head/sys/kern/vfs_subr.c Fri Feb 6 18:16:01 2009 (r188243) +++ head/sys/kern/vfs_subr.c Fri Feb 6 20:06:48 2009 (r188244) @@ -2719,7 +2719,6 @@ vn_printf(struct vnode *vp, const char * vp->v_object->resident_page_count); printf(" "); lockmgr_printinfo(vp->v_vnlock); - printf("\n"); if (vp->v_data != NULL) VOP_PRINT(vp); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902062006.n16K6mNa070274>