From 17e24564634134c9b7145fcf8d1c7d51b93c3182 Mon Sep 17 00:00:00 2001 From: jmg Date: Tue, 28 Jan 2014 17:27:54 +0000 Subject: [PATCH] fix spelling of lock_initialized.. jhb approved.. MFC after: 1 week --- sys/kern/subr_lock.c | 4 ++-- sys/sys/lock.h | 2 +- sys/sys/mutex.h | 2 +- sys/sys/rwlock.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 94908ac49371..ca0778858d1a 100644 --- a/sys/kern/subr_lock.c +++ b/sys/kern/subr_lock.c @@ -78,7 +78,7 @@ lock_init(struct lock_object *lock, struct lock_class *class, const char *name, int i; /* Check for double-init and zero object. */ - KASSERT(!lock_initalized(lock), ("lock \"%s\" %p already initialized", + KASSERT(!lock_initialized(lock), ("lock \"%s\" %p already initialized", name, lock)); /* Look up lock class to find its index. */ @@ -100,7 +100,7 @@ void lock_destroy(struct lock_object *lock) { - KASSERT(lock_initalized(lock), ("lock %p is not initialized", lock)); + KASSERT(lock_initialized(lock), ("lock %p is not initialized", lock)); WITNESS_DESTROY(lock); LOCK_LOG_DESTROY(lock, 0); lock->lo_flags &= ~LO_INITIALIZED; diff --git a/sys/sys/lock.h b/sys/sys/lock.h index 4ff0e79f8168..e4b573a2676f 100644 --- a/sys/sys/lock.h +++ b/sys/sys/lock.h @@ -178,7 +178,7 @@ struct lock_class { #define LOCK_LOG_DESTROY(lo, flags) LOCK_LOG_INIT(lo, flags) -#define lock_initalized(lo) ((lo)->lo_flags & LO_INITIALIZED) +#define lock_initialized(lo) ((lo)->lo_flags & LO_INITIALIZED) /* * Helpful macros for quickly coming up with assertions with informative diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 39d8f45a57af..3d5f08c1405d 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -382,7 +382,7 @@ extern struct mtx_pool *mtxpool_sleep; _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \ tick_sbt * (timo), 0, C_HARDCLOCK) -#define mtx_initialized(m) lock_initalized(&(m)->lock_object) +#define mtx_initialized(m) lock_initialized(&(m)->lock_object) #define mtx_owned(m) (((m)->mtx_lock & ~MTX_FLAGMASK) == (uintptr_t)curthread) diff --git a/sys/sys/rwlock.h b/sys/sys/rwlock.h index a32734087210..6be6949405f1 100644 --- a/sys/sys/rwlock.h +++ b/sys/sys/rwlock.h @@ -218,7 +218,7 @@ void __rw_assert(const volatile uintptr_t *c, int what, const char *file, _sleep((chan), &(rw)->lock_object, (pri), (wmesg), \ tick_sbt * (timo), 0, C_HARDCLOCK) -#define rw_initialized(rw) lock_initalized(&(rw)->lock_object) +#define rw_initialized(rw) lock_initialized(&(rw)->lock_object) struct rw_args { void *ra_rw;