summaryrefslogtreecommitdiffhomepage
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-27 13:17:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-27 13:17:33 +0000
commitf67e0a4050c7d180123ad8bd473275cf40a7e483 (patch)
tree601f776b08e95b6f51ffe9b8226873a4a2ceb2e7 /src/os
parente1c9746e371d387f4166fe99d65fd94a3f27c260 (diff)
downloadnginx-f67e0a4050c7d180123ad8bd473275cf40a7e483.tar.gz
nginx-f67e0a4050c7d180123ad8bd473275cf40a7e483.tar.bz2
ngx_log_errno()
Diffstat (limited to '')
-rw-r--r--src/os/win32/ngx_event_log.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/os/win32/ngx_event_log.c b/src/os/win32/ngx_event_log.c
index d7b9bcafe..7cdeae709 100644
--- a/src/os/win32/ngx_event_log.c
+++ b/src/os/win32/ngx_event_log.c
@@ -33,24 +33,7 @@ ngx_event_log(ngx_err_t err, const char *fmt, ...)
va_end(args);
if (err) {
-
- if (p > last - 50) {
-
- /* leave a space for an error code */
-
- p = last - 50;
- *p++ = '.';
- *p++ = '.';
- *p++ = '.';
- }
-
- p = ngx_slprintf(p, last, ((unsigned) err < 0x80000000)
- ? " (%d: " : " (%Xd: ", err);
- p = ngx_strerror_r(err, p, last - p);
-
- if (p < last) {
- *p++ = ')';
- }
+ p = ngx_log_errno(p, last, err);
}
if (p > last - NGX_LINEFEED_SIZE - 1) {