mturk       2005/02/16 03:43:40

  Modified:    jk/native/common jk_util.c
  Log:
  Use 4 digits (or more) for pid and tid. Log just looks nicer.
  
  Revision  Changes    Path
  1.58      +3 -3      jakarta-tomcat-connectors/jk/native/common/jk_util.c
  
  Index: jk_util.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- jk_util.c 16 Feb 2005 09:25:35 -0000      1.57
  +++ jk_util.c 16 Feb 2005 11:43:39 -0000      1.58
  @@ -294,10 +294,10 @@
           /* Log [pid:threadid] for debug and trace levels */
           if (l->level < JK_LOG_INFO_LEVEL) {
   #ifdef USE_SPRINTF              /* until we get a snprintf function */       
 
  -            used += sprintf(&buf[used], "[%d:%d] ", getpid(),
  +            used += sprintf(&buf[used], "[%04d:%04d] ", getpid(),
                               jk_gettid());
   #else
  -            used += snprintf(&buf[used], HUGE_BUFFER_SIZE, "[%d:%d] ",
  +            used += snprintf(&buf[used], HUGE_BUFFER_SIZE, "[%04d:%04d] ",
                                getpid(), jk_gettid());
   #endif
               if (used < 0) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to