summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-02-06 20:06:48 +0000
committerjhb <jhb@FreeBSD.org>2009-02-06 20:06:48 +0000
commitf856c6d618010b9224df31d6521124b672608255 (patch)
tree3db8b403918d1ca074618784db83b342f72dd0f4 /sys/kern/kern_lock.c
parentd102122bd0838dfffdce66a0c2a7a5dded257d04 (diff)
downloadFreeBSD-src-f856c6d618010b9224df31d6521124b672608255.zip
FreeBSD-src-f856c6d618010b9224df31d6521124b672608255.tar.gz
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().
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 2bb02fd..b2294f8 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -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);
}
OpenPOWER on IntegriCloud