You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ji...@apache.org on 2007/09/18 18:24:11 UTC

svn commit: r576971 - in /tomcat/connectors/trunk/jk/native: apache-1.3/mod_jk.c apache-2.0/mod_jk.c

Author: jim
Date: Tue Sep 18 09:24:09 2007
New Revision: 576971

URL: http://svn.apache.org/viewvc?rev=576971&view=rev
Log:
Useful to log the shared memory segment size. Since JkShmSize
takes an int and uses that throughout, this is a pretty
safe cast unless, of course, people abuse JkShmSize,
but this would then again indicate that :)

Modified:
    tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
    tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c?rev=576971&r1=576970&r2=576971&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-1.3/mod_jk.c Tue Sep 18 09:24:09 2007
@@ -2599,8 +2599,8 @@
 
     if ((rc = jk_shm_open(jk_shm_file, jk_shm_size, conf->log)) == 0) {
         if (JK_IS_DEBUG_LEVEL(conf->log))
-            jk_log(conf->log, JK_LOG_DEBUG, "Initialized shm:%s",
-                   jk_shm_name(), rc);
+            jk_log(conf->log, JK_LOG_DEBUG, "Initialized shm:%s (%d bytes)",
+                   jk_shm_name(), (int) jk_shm_size, rc);
     }
     else
         jk_log(conf->log, JK_LOG_ERROR,
@@ -2899,8 +2899,8 @@
 
     if ((rc = jk_shm_attach(jk_shm_file, jk_shm_size, conf->log)) == 0) {
         if (JK_IS_DEBUG_LEVEL(conf->log))
-            jk_log(conf->log, JK_LOG_DEBUG, "Attached shm:%s",
-                   jk_shm_name());
+            jk_log(conf->log, JK_LOG_DEBUG, "Attached shm:%s (%d bytes)",
+                   jk_shm_name(), (int) jk_shm_size);
     }
     else
         jk_log(conf->log, JK_LOG_ERROR, "Attaching shm:%s errno=%d",

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=576971&r1=576970&r2=576971&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Tue Sep 18 09:24:09 2007
@@ -2671,8 +2671,8 @@
 
     if ((rc = jk_shm_attach(jk_shm_file, jk_shm_size, conf->log)) == 0) {
         if (JK_IS_DEBUG_LEVEL(conf->log))
-            jk_log(conf->log, JK_LOG_DEBUG, "Attached shm:%s",
-                   jk_shm_name());
+            jk_log(conf->log, JK_LOG_DEBUG, "Attached shm:%s (%d bytes)",
+                   jk_shm_name(), (int) jk_shm_size);
             apr_pool_cleanup_register(pconf, conf->log, jk_cleanup_shmem,
                                      jk_cleanup_shmem);
     }
@@ -2715,8 +2715,8 @@
 #endif
     if ((rc = jk_shm_open(jk_shm_file, jk_shm_size, conf->log)) == 0) {
         if (JK_IS_DEBUG_LEVEL(conf->log))
-            jk_log(conf->log, JK_LOG_DEBUG, "Initialized shm:%s",
-                   jk_shm_name(), rc);
+            jk_log(conf->log, JK_LOG_DEBUG, "Initialized shm:%s (%d bytes)",
+                   jk_shm_name(), (int) jk_shm_size, rc);
             apr_pool_cleanup_register(pconf, conf->log, jk_cleanup_shmem,
                                       jk_cleanup_shmem);
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org