comparison src/core/ngx_log.c @ 270:6eb1e38f0f1f NGINX_0_5_5

nginx 0.5.5 *) Change: the -v switch does not show compiler information any more. *) Feature: the -V switch. *) Feature: the "worker_rlimit_core" directive supports size in K, M, and G. *) Bugfix: the nginx.pm module now could be installed by an unprivileged user. *) Bugfix: a segmentation fault might occur if the $r->request_body or $r->request_body_file methods were used. *) Bugfix: the ppc platform specific bugs.
author Igor Sysoev <http://sysoev.ru>
date Sun, 24 Dec 2006 00:00:00 +0300
parents 6ae1357b7b7c
children c5c2b2883984
comparison
equal deleted inserted replaced
269:aa9c0062124d 270:6eb1e38f0f1f
90 ngx_memcpy(errstr, ngx_cached_err_log_time.data, 90 ngx_memcpy(errstr, ngx_cached_err_log_time.data,
91 ngx_cached_err_log_time.len); 91 ngx_cached_err_log_time.len);
92 92
93 p = errstr + ngx_cached_err_log_time.len; 93 p = errstr + ngx_cached_err_log_time.len;
94 94
95 p = ngx_sprintf(p, " [%s] ", err_levels[level]); 95 p = ngx_snprintf(p, last - p, " [%s] ", err_levels[level]);
96 96
97 /* pid#tid */ 97 /* pid#tid */
98 p = ngx_sprintf(p, "%P#" NGX_TID_T_FMT ": ", ngx_log_pid, ngx_log_tid); 98 p = ngx_snprintf(p, last - p, "%P#" NGX_TID_T_FMT ": ",
99 ngx_log_pid, ngx_log_tid);
99 100
100 if (log->connection) { 101 if (log->connection) {
101 p = ngx_sprintf(p, "*%uA ", log->connection); 102 p = ngx_snprintf(p, last - p, "*%uA ", log->connection);
102 } 103 }
103 104
104 #if (NGX_HAVE_VARIADIC_MACROS) 105 #if (NGX_HAVE_VARIADIC_MACROS)
105 106
106 va_start(args, fmt); 107 va_start(args, fmt);