[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.16 and 1.17

version 1.16, 2005/05/31 08:58:48 version 1.17, 2005/06/02 16:05:38
Line 218 
Line 218 
                 ecp = 0;                  ecp = 0;
   
 #ifdef CVS  #ifdef CVS
           struct cvs_cmd *cmdp;
   
           /* always use the command name in error messages, not aliases */
           cmdp = cvs_findcmd(cvs_command);
   
         /* 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));
Line 226 
Line 231 
         } 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]",
                             __progname, cvs_command);                              __progname, cmdp->cmd_name);
                 else                  else
                         snprintf(prefix, sizeof(prefix), "%s %s", __progname,                          snprintf(prefix, sizeof(prefix), "%s %s", __progname,
                             cvs_command);                              cmdp->cmd_name);
         } else /* just use the standard strlcpy */          } else /* just use the standard strlcpy */
 #endif  #endif
                 strlcpy(prefix, __progname, sizeof(prefix));                  strlcpy(prefix, __progname, sizeof(prefix));

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17