summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-09-09 23:18:48 +0000
committerjasone <jasone@FreeBSD.org>2000-09-09 23:18:48 +0000
commite454be9f46227fc056471526ff9507251ff5b61e (patch)
treeab0c678ecf9da44e033f686cc7713784e11be49c /sys/kern/subr_witness.c
parent9d6c8a5123d3247d48e39522c2b84a8875421dc8 (diff)
downloadFreeBSD-src-e454be9f46227fc056471526ff9507251ff5b61e.zip
FreeBSD-src-e454be9f46227fc056471526ff9507251ff5b61e.tar.gz
Style cleanups. No functional changes.
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 7dda8f1..b0346c2 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -241,16 +241,16 @@ witness_enter(mtx_t *m, int flags, const char *file, int line)
if (flags & MTX_SPIN) {
if (!w->w_spin)
- panic("mutex_enter: MTX_SPIN on MTX_DEF mutex %s @ %s:%d",
- m->mtx_description, file, line);
+ panic("mutex_enter: MTX_SPIN on MTX_DEF mutex %s @"
+ " %s:%d", m->mtx_description, file, line);
if (m->mtx_recurse != 0)
return;
mtx_enter(&w_mtx, MTX_SPIN);
i = witness_spin_check;
if (i != 0 && w->w_level < i) {
mtx_exit(&w_mtx, MTX_SPIN);
- panic("mutex_enter(%s:%x, MTX_SPIN) out of order @ %s:%d"
- " already holding %s:%x",
+ panic("mutex_enter(%s:%x, MTX_SPIN) out of order @"
+ " %s:%d already holding %s:%x",
m->mtx_description, w->w_level, file, line,
spin_order_list[ffs(i)-1], i);
}
@@ -278,7 +278,6 @@ witness_enter(mtx_t *m, int flags, const char *file, int line)
if ((m1 = LIST_FIRST(&p->p_heldmtx)) == NULL)
goto out;
-
if ((w1 = m1->mtx_witness) == w) {
if (w->w_same_squawked || dup_ok(w))
goto out;
@@ -369,8 +368,8 @@ witness_exit(mtx_t *m, int flags, const char *file, int line)
if (flags & MTX_SPIN) {
if (!w->w_spin)
- panic("mutex_exit: MTX_SPIN on MTX_DEF mutex %s @ %s:%d",
- m->mtx_description, file, line);
+ panic("mutex_exit: MTX_SPIN on MTX_DEF mutex %s @"
+ " %s:%d", m->mtx_description, file, line);
if (m->mtx_recurse != 0)
return;
mtx_enter(&w_mtx, MTX_SPIN);
@@ -398,7 +397,6 @@ witness_try_enter(mtx_t *m, int flags, const char *file, int line)
struct proc *p;
witness_t *w = m->mtx_witness;
-
if (flags & MTX_SPIN) {
if (!w->w_spin)
panic("mutex_try_enter: "
OpenPOWER on IntegriCloud