diff options
| author | 2004-04-04 07:45:30 +0000 | |
|---|---|---|
| committer | 2004-04-04 07:45:30 +0000 | |
| commit | 812bc70dae80637548a0ccfab649f8912a09faf5 (patch) | |
| tree | b0410deed7f35f9db952bf51aa3770a9cb9b0a68 /apache20.h | |
| parent | bf387bc750caf37fe2cbe45a901161861fc50b01 (diff) | |
Updated to new logging function with apaceh 2 prototype instead of 1.3 so i can properly log Error numbers in apache 2 (better debugging)
Diffstat (limited to 'apache20.h')
| -rw-r--r-- | apache20.h | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -20,7 +20,7 @@ | |||
| 20 | 20 | ||
| 21 | #include "util_time.h" | 21 | #include "util_time.h" |
| 22 | 22 | ||
| 23 | static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); | 23 | /*static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6))); |
| 24 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) | 24 | static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) |
| 25 | { | 25 | { |
| 26 | static char buff[MAX_STRING_LEN]; | 26 | static char buff[MAX_STRING_LEN]; |
| @@ -29,6 +29,8 @@ static inline void log_error(char *file, int line, int level, const server_rec * | |||
| 29 | apr_vsnprintf(buff,MAX_STRING_LEN, fmt,args); | 29 | apr_vsnprintf(buff,MAX_STRING_LEN, fmt,args); |
| 30 | ap_log_error(file,line,level,0,s,"%s",buff); | 30 | ap_log_error(file,line,level,0,s,"%s",buff); |
| 31 | va_end(args); | 31 | va_end(args); |
| 32 | } | 32 | }*/ |
| 33 | |||
| 34 | #define log_error ap_log_error | ||
| 33 | 35 | ||
| 34 | #endif /* APACHE20_H */ | 36 | #endif /* APACHE20_H */ |
