diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-19 16:26:41 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-19 16:26:41 +0000 |
commit | 160d774afcf3cdd4f999489211eb9d78bf82439a (patch) | |
tree | 59227d2698d9c531808a9f3edb708f36707a37f9 /src/core/ngx_log.c | |
parent | 1b138ed141c0bdb0c9944c1ae70e53682ed2d035 (diff) | |
download | nginx-160d774afcf3cdd4f999489211eb9d78bf82439a.tar.gz nginx-160d774afcf3cdd4f999489211eb9d78bf82439a.zip |
nginx-0.0.1-2003-11-19-19:26:41 import
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r-- | src/core/ngx_log.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c index 61d49c7c2..a9ca9c363 100644 --- a/src/core/ngx_log.c +++ b/src/core/ngx_log.c @@ -91,12 +91,21 @@ void ngx_log_error_core(int level, ngx_log_t *log, ngx_err_t err, len += ngx_snprintf(errstr + len, sizeof(errstr) - len - 1, PID_FMT "#%d: ", ngx_getpid(), 0); + if (log->data) { + len += ngx_snprintf(errstr + len, sizeof(errstr) - len - 1, + "*%u ", * (u_int *) log->data); + } + #if (HAVE_VARIADIC_MACROS) + va_start(args, fmt); len += ngx_vsnprintf(errstr + len, sizeof(errstr) - len - 1, fmt, args); va_end(args); + #else + len += ngx_vsnprintf(errstr + len, sizeof(errstr) - len - 1, fmt, args); + #endif if (err) { |