You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Marc Slemko <ma...@hyperreal.com> on 1997/06/29 02:05:14 UTC

cvs commit: apache/src http_log.c

marc        97/06/28 17:05:13

  Modified:    src       http_log.c
  Log:
  We have ap_snprintf; use it.
  
  Revision  Changes    Path
  1.16      +6 -4      apache/src/http_log.c
  
  Index: http_log.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_log.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -C3 -r1.15 -r1.16
  *** http_log.c	1997/06/28 22:39:21	1.15
  --- http_log.c	1997/06/29 00:05:12	1.16
  ***************
  *** 196,202 ****
        fflush(s->error_log);
    }
    
  ! void log_reason(const char *reason, const char *file, request_rec *r) {
        fprintf (r->server->error_log,
    	     "[%s] access to %s failed for %s, reason: %s\n",
    	     get_time(), file,
  --- 196,203 ----
        fflush(s->error_log);
    }
    
  ! void log_reason(const char *reason, const char *file, request_rec *r) 
  ! {
        fprintf (r->server->error_log,
    	     "[%s] access to %s failed for %s, reason: %s\n",
    	     get_time(), file,
  ***************
  *** 206,214 ****
    }
    
    void log_assert(const char *szExp,const char *szFile,int nLine)
  !     {
        char buf[1000];
    
  !     sprintf(buf,"line %d, assertion \"%s\" failed",nLine,szExp);
        log_unixerr("assert",szFile,buf,NULL);
  !     }
  --- 207,216 ----
    }
    
    void log_assert(const char *szExp,const char *szFile,int nLine)
  ! {
        char buf[1000];
    
  !     ap_snprintf(buf, sizeof(buf), 
  !         "line %d, assertion \"%s\" failed",nLine,szExp);
        log_unixerr("assert",szFile,buf,NULL);
  ! }