Mercurial > hg > nginx-quic
comparison src/core/ngx_log.c @ 2769:9d986c4e796f
introduce ngx_write_console() to support OEM code pages
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Apr 2009 15:05:27 +0000 |
parents | 6d358aeaa989 |
children | 7a44b1932741 |
comparison
equal
deleted
inserted
replaced
2768:e4a4c889694f | 2769:9d986c4e796f |
---|---|
150 | 150 |
151 msg -= (err_levels[level].len + 4); | 151 msg -= (err_levels[level].len + 4); |
152 | 152 |
153 (void) ngx_sprintf(msg, "[%V]: ", &err_levels[level]); | 153 (void) ngx_sprintf(msg, "[%V]: ", &err_levels[level]); |
154 | 154 |
155 (void) ngx_write_fd(ngx_stderr, msg, p - msg); | 155 (void) ngx_write_console(ngx_stderr, msg, p - msg); |
156 } | 156 } |
157 | 157 |
158 | 158 |
159 #if !(NGX_HAVE_VARIADIC_MACROS) | 159 #if !(NGX_HAVE_VARIADIC_MACROS) |
160 | 160 |
222 p = last - NGX_LINEFEED_SIZE; | 222 p = last - NGX_LINEFEED_SIZE; |
223 } | 223 } |
224 | 224 |
225 ngx_linefeed(p); | 225 ngx_linefeed(p); |
226 | 226 |
227 (void) ngx_write_fd(ngx_stderr, errstr, p - errstr); | 227 (void) ngx_write_console(ngx_stderr, errstr, p - errstr); |
228 } | 228 } |
229 | 229 |
230 | 230 |
231 u_char * | 231 u_char * |
232 ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err) | 232 ngx_log_errno(u_char *buf, u_char *last, ngx_err_t err) |