[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.35 and 1.36

version 1.35, 2006/05/27 03:30:30 version 1.36, 2006/07/07 17:37:17
Line 31 
Line 31 
 #include "log.h"  #include "log.h"
   
 extern char *__progname;  extern char *__progname;
   
 static int send_m = 1;  static int send_m = 1;
   
 /*  /*
Line 85 
Line 84 
         /* The cvs program appends the command name to the program name */          /* The cvs program appends the command name to the program name */
         if (level == LP_TRACE) {          if (level == LP_TRACE) {
                 strlcpy(prefix, " -> ", sizeof(prefix));                  strlcpy(prefix, " -> ", sizeof(prefix));
                 if (cvs_cmdop == CVS_OP_SERVER)                  if (cvs_server_active)
                         prefix[0] = 'S';                          prefix[0] = 'S';
                   else
                           prefix[0] = 'C';
         } else if (cvs_command != NULL) {          } else if (cvs_command != NULL) {
                 if (level == LP_ABORT)                  if (level == LP_ABORT)
                         snprintf(prefix, sizeof(prefix), "%s [%s aborted]",                          snprintf(prefix, sizeof(prefix), "%s [%s aborted]",
Line 108 
Line 109 
         else          else
                 out = stderr;                  out = stderr;
   
         if (cvs_cmdop == CVS_OP_SERVER) {          if (cvs_server_active) {
                 if (out == stdout)                  if (out == stdout)
                         putc('M', out);                          putc('M', out);
                 else {                  else {
Line 145 
Line 146 
   
         va_start(vap, fmt);          va_start(vap, fmt);
   
         if (cvs_cmdop == CVS_OP_SERVER) {          if (cvs_server_active) {
                 ret = vasprintf(&nstr, fmt, vap);                  ret = vasprintf(&nstr, fmt, vap);
                 if (ret == -1)                  if (ret == -1)
                         fatal("cvs_printf: %s", strerror(errno));                          fatal("cvs_printf: %s", strerror(errno));

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36