patch-logfile_c 661 B

1234567891011121314151617
  1. --- mgetty-1.1.36.orig/logfile.c 2005-11-26 14:48:16.000000000 +0100
  2. +++ mgetty-1.1.36/logfile.c 2009-08-28 15:17:14.239450922 +0200
  3. @@ -327,12 +327,11 @@ static int first_open = TRUE;
  4. }
  5. else /* ERROR or FATAL */
  6. {
  7. - fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: %s",
  8. + fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: #%d",
  9. tm->tm_mon+1, tm->tm_mday,
  10. tm->tm_hour, tm->tm_min, tm->tm_sec,
  11. log_infix, ws,
  12. - ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
  13. - "<error not in list>" );
  14. + errnr );
  15. #ifdef SYSLOG
  16. syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws );
  17. #endif