Module: kamailio
Branch: master
Commit: c23b48ca64f366ce48beadb3b7e20e38ad4b30ec
URL:
https://github.com/kamailio/kamailio/commit/c23b48ca64f366ce48beadb3b7e20e3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-10T12:31:32+01:00
tls: enclose debug messages for tls locking in EXTRA_DEBUG defines
- it can be too verbose for normal debugging
---
Modified: modules/tls/tls_locking.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c23b48ca64f366ce48beadb3b7e20e3…
Patch:
https://github.com/kamailio/kamailio/commit/c23b48ca64f366ce48beadb3b7e20e3…
---
diff --git a/modules/tls/tls_locking.c b/modules/tls/tls_locking.c
index 434f490..3515f01 100644
--- a/modules/tls/tls_locking.c
+++ b/modules/tls/tls_locking.c
@@ -104,11 +104,15 @@ static void locking_f(int mode, int n, const char* file, int line)
abort(); /* quick crash :-) */
}
if (mode & CRYPTO_LOCK){
+#ifdef EXTRA_DEBUG
LM_DBG("lock get (%d): %d (%s:%d)\n", mode, n, file, line);
+#endif
lock_set_get(static_locks, n);
}else{
lock_set_release(static_locks, n);
+#ifdef EXTRA_DEBUG
LM_DBG("lock release (%d): %d (%s:%d)\n", mode, n, file, line);
+#endif
}
}