Date: Tue, 28 Jan 2014 17:27:54 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261238 - in head/sys: kern sys Message-ID: <201401281727.s0SHRs82088237@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmg Date: Tue Jan 28 17:27:54 2014 New Revision: 261238 URL: http://svnweb.freebsd.org/changeset/base/261238 Log: fix spelling of lock_initialized.. jhb approved.. MFC after: 1 week Modified: head/sys/kern/subr_lock.c head/sys/sys/lock.h head/sys/sys/mutex.h head/sys/sys/rwlock.h Modified: head/sys/kern/subr_lock.c ============================================================================== --- head/sys/kern/subr_lock.c Tue Jan 28 17:23:44 2014 (r261237) +++ head/sys/kern/subr_lock.c Tue Jan 28 17:27:54 2014 (r261238) @@ -78,7 +78,7 @@ lock_init(struct lock_object *lock, stru 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; Modified: head/sys/sys/lock.h ============================================================================== --- head/sys/sys/lock.h Tue Jan 28 17:23:44 2014 (r261237) +++ head/sys/sys/lock.h Tue Jan 28 17:27:54 2014 (r261238) @@ -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 Modified: head/sys/sys/mutex.h ============================================================================== --- head/sys/sys/mutex.h Tue Jan 28 17:23:44 2014 (r261237) +++ head/sys/sys/mutex.h Tue Jan 28 17:27:54 2014 (r261238) @@ -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) Modified: head/sys/sys/rwlock.h ============================================================================== --- head/sys/sys/rwlock.h Tue Jan 28 17:23:44 2014 (r261237) +++ head/sys/sys/rwlock.h Tue Jan 28 17:27:54 2014 (r261238) @@ -218,7 +218,7 @@ void __rw_assert(const volatile uintptr_ _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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401281727.s0SHRs82088237>