summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index d591c96..43f9e5d 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -529,9 +529,10 @@ mi_switch()
register long s, u;
struct timeval tv;
-#ifdef DEBUG
- if (p->p_simple_locks)
- panic("sleep: holding simple lock");
+#ifdef SIMPLELOCK_DEBUG
+ if (p->p_simple_locks) {
+ printf("sleep: holding simple lock");
+ }
#endif
/*
* Compute the amount of time during which the current
OpenPOWER on IntegriCloud