summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-03-07 12:12:43 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-03-07 12:12:43 +0000
commitef3e4194f190f85b1e58ef2804ba1bd69aa2c985 (patch)
tree1b348d35231af8f9ff61f337152c25a2ccafa58d /memory
parentd8a90e6cdfa824e0d66a4d93818d1de4f5b2563c (diff)
downloadlibapr-ef3e4194f190f85b1e58ef2804ba1bd69aa2c985.tar.gz
* memory/unix/apr_pools.c
(apr_pool_check_integrity): Only log when being verbose. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64406 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index 0338233e2..22dad218f 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -1219,9 +1219,10 @@ static void apr_pool_check_integrity(apr_pool_t *pool)
*/
#if (APR_POOL_DEBUG & APR_POOL_DEBUG_LIFETIME)
if (!apr_pool_is_child_of(pool, global_pool)) {
+#if (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL)
apr_pool_log_event(pool, "LIFE",
__FILE__ ":apr_pool_integrity check", 0);
-
+#endif /* (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL) */
abort();
}
#endif /* (APR_POOL_DEBUG & APR_POOL_DEBUG_LIFETIME) */
@@ -1229,8 +1230,10 @@ static void apr_pool_check_integrity(apr_pool_t *pool)
#if (APR_POOL_DEBUG & APR_POOL_DEBUG_OWNER)
#if APR_HAS_THREADS
if (!apr_os_thread_equal(pool->owner, apr_os_thread_current())) {
+#if (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL)
apr_pool_log_event(pool, "THREAD",
__FILE__ ":apr_pool_integrity check", 0);
+#endif /* (APR_POOL_DEBUG & APR_POOL_DEBUG_VERBOSE_ALL) */
abort();
}
#endif /* APR_HAS_THREADS */