[BACK]Return to log.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/log.c between version 1.12 and 1.13

version 1.12, 2005/03/26 08:09:54 version 1.13, 2005/03/28 22:46:09
Line 41 
Line 41 
   
   
 #ifdef unused  #ifdef unused
 static char *cvs_log_levels[] = {  static char *cvs_log_levels[LP_MAX + 1] = {
         "debug",          "debug",
         "info",          "info",
         "notice",          "notice",
Line 50 
Line 50 
         "alert",          "alert",
         "error",          "error",
         "abort",          "abort",
           "trace",
 };  };
 #endif  #endif
   
 static int cvs_slpriomap[] = {  static int cvs_slpriomap[LP_MAX + 1] = {
         LOG_DEBUG,          LOG_DEBUG,
         LOG_INFO,          LOG_INFO,
         LOG_NOTICE,          LOG_NOTICE,
Line 62 
Line 63 
         LOG_ALERT,          LOG_ALERT,
         LOG_ERR,          LOG_ERR,
         LOG_ERR,          LOG_ERR,
           LOG_DEBUG,
 };  };
   
 static u_int cvs_log_dest = LD_STD;  static u_int cvs_log_dest = LD_STD;
Line 204 
Line 206 
         char prefix[64], buf[1024], ebuf[32];          char prefix[64], buf[1024], ebuf[32];
         FILE *out;          FILE *out;
   
         if (level >= LP_MAX)          if (level > LP_MAX)
                 return (-1);                  return (-1);
   
         /* apply any filters */          /* apply any filters */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13