Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-27 17:17:33 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-04-27 17:17:33 +0400
commitf67e0a4050c7d180123ad8bd473275cf40a7e483 (patch)
tree601f776b08e95b6f51ffe9b8226873a4a2ceb2e7 /src/core/ngx_conf_file.c
parente1c9746e371d387f4166fe99d65fd94a3f27c260 (diff)
ngx_log_errno()
Diffstat (limited to 'src/core/ngx_conf_file.c')
-rw-r--r--src/core/ngx_conf_file.c22
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) {