From 224a2f3144395588483736d3f0324a48f6606d05 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 7 Mar 2007 20:46:04 +0000 Subject: [PATCH] Wrap a few lines at 80 cols. --- sys/sys/mutex.h | 12 ++++++++---- sys/sys/rwlock.h | 6 ++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index cec365b6ba2..cde6e444c8c 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -159,10 +159,12 @@ void _mtx_assert(struct mtx *m, int what, const char *file, int line); int contested = 0; \ uint64_t waittime = 0; \ if (!_obtain_lock((mp), _tid)) { \ - lock_profile_obtain_lock_failed(&(mp)->mtx_object, &contested, &waittime); \ + lock_profile_obtain_lock_failed(&(mp)->mtx_object, \ + &contested, &waittime); \ _mtx_lock_sleep((mp), _tid, (opts), (file), (line)); \ } \ - lock_profile_obtain_lock_success(&(mp)->mtx_object, contested, waittime, file, line); \ + lock_profile_obtain_lock_success(&(mp)->mtx_object, contested, \ + waittime, (file), (line)); \ } while (0) #endif @@ -184,11 +186,13 @@ void _mtx_assert(struct mtx *m, int what, const char *file, int line); if ((mp)->mtx_lock == _tid) \ (mp)->mtx_recurse++; \ else { \ - lock_profile_obtain_lock_failed(&(mp)->mtx_object, &contested, &waittime); \ + lock_profile_obtain_lock_failed(&(mp)->mtx_object, \ + &contested, &waittime); \ _mtx_lock_spin((mp), _tid, (opts), (file), (line)); \ } \ } \ - lock_profile_obtain_lock_success(&(mp)->mtx_object, contested, waittime, file, line); \ + lock_profile_obtain_lock_success(&(mp)->mtx_object, contested, \ + waittime, (file), (line)); \ } while (0) #else /* SMP */ #define _get_spin_lock(mp, tid, opts, file, line) do { \ diff --git a/sys/sys/rwlock.h b/sys/sys/rwlock.h index 13a54365a4d..c387e6516d4 100644 --- a/sys/sys/rwlock.h +++ b/sys/sys/rwlock.h @@ -101,10 +101,12 @@ uint64_t waitstart = 0; \ \ if (!_rw_write_lock((rw), _tid)) { \ - lock_profile_obtain_lock_failed(&(rw)->rw_object, &contested, &waitstart); \ + lock_profile_obtain_lock_failed(&(rw)->rw_object, \ + &contested, &waitstart); \ _rw_wlock_hard((rw), _tid, (file), (line)); \ } \ - lock_profile_obtain_lock_success(&rw->rw_object, contested, waitstart, file, line); \ + lock_profile_obtain_lock_success(&(rw)->rw_object, contested, \ + waitstart, (file), (line)); \ } while (0) /* Release a write lock. */ -- 2.45.2