diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 17:17:33 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-27 17:17:33 +0400 |
commit | f67e0a4050c7d180123ad8bd473275cf40a7e483 (patch) | |
tree | 601f776b08e95b6f51ffe9b8226873a4a2ceb2e7 /src/core/ngx_conf_file.c | |
parent | e1c9746e371d387f4166fe99d65fd94a3f27c260 (diff) |
ngx_log_errno()
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r-- | src/core/ngx_conf_file.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index c95834ae7..7c641e024 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c @@ -965,27 +965,7 @@ ngx_conf_log_error(ngx_uint_t level, ngx_conf_t *cf, ngx_err_t err, va_end(args); if (err) { - - if (p > last - 50) { - - /* leave a space for an error code */ - - p = last - 50; - *p++ = '.'; - *p++ = '.'; - *p++ = '.'; - } - -#if (NGX_WIN32) - p = ngx_slprintf(p, last, ((unsigned) err < 0x80000000) - ? " (%d: " : " (%Xd: ", err); -#else - p = ngx_slprintf(p, last, " (%d: ", err); -#endif - - p = ngx_strerror_r(err, p, last - p); - - *p++ = ')'; + p = ngx_log_errno(p, last, err); } if (cf->conf_file == NULL) { |