changeset 769:c088e20c4505

synch: rename synch printing helpers Nothing should be calling these directly. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 25 Jul 2019 14:13:06 -0400
parents 39f93d3a8108
children 8f41dc0ec42e
files synch.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/synch.c	Thu Jul 25 14:12:38 2019 -0400
+++ b/synch.c	Thu Jul 25 14:13:06 2019 -0400
@@ -152,7 +152,7 @@
 #define GENERATE_COND_MASK_ARGS(c)						\
 	((c)->info.magic != (uintptr_t) &(c)->info) ? 'M' : '.'
 
-static void print_lock(struct lock *lock, const struct lock_context *where)
+static void __print_lock(struct lock *lock, const struct lock_context *where)
 {
 	cmn_err(CE_CRIT, "lockdep:     %s (%p) <%c> at %s:%d",
 #ifdef JEFFPC_LOCK_TRACKING
@@ -165,7 +165,7 @@
 		where->file, where->line);
 }
 
-static void print_rw(struct rwlock *lock, const struct lock_context *where)
+static void __print_rw(struct rwlock *lock, const struct lock_context *where)
 {
 	cmn_err(CE_CRIT, "lockdep:     %p <%c> at %s:%d",
 		lock,
@@ -173,7 +173,7 @@
 		where->file, where->line);
 }
 
-static void print_cond(struct cond *cond, const struct lock_context *where)
+static void __print_cond(struct cond *cond, const struct lock_context *where)
 {
 	cmn_err(CE_CRIT, "lockdep:     %p <%c> at %s:%d",
 		cond,
@@ -187,13 +187,13 @@
 {
 	switch (type) {
 		case SYNCH_TYPE_MUTEX:
-			print_lock(container_of(info, struct lock, info), where);
+			__print_lock(container_of(info, struct lock, info), where);
 			break;
 		case SYNCH_TYPE_RW:
-			print_rw(container_of(info, struct rwlock, info), where);
+			__print_rw(container_of(info, struct rwlock, info), where);
 			break;
 		case SYNCH_TYPE_COND:
-			print_cond(container_of(info, struct cond, info), where);
+			__print_cond(container_of(info, struct cond, info), where);
 			break;
 	}
 }