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-24 19:50:51 +0400
committerIgor Sysoev <igor@sysoev.ru>2009-04-24 19:50:51 +0400
commitc27497da921744ba1d23f0d3ddc50b8684741c48 (patch)
tree24f193ca1496e736c878a81ee34d603b66302b62 /src/core/ngx_log.c
parent03c779451ca796655062115771af14f120ea9b93 (diff)
change ngx_log_abort() interface
Diffstat (limited to 'src/core/ngx_log.c')
-rw-r--r--src/core/ngx_log.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/core/ngx_log.c b/src/core/ngx_log.c
index e82e32dec..83bcbb726 100644
--- a/src/core/ngx_log.c
+++ b/src/core/ngx_log.c
@@ -207,10 +207,19 @@ ngx_log_debug_core(ngx_log_t *log, ngx_err_t err, const char *fmt, ...)
#endif
-void
-ngx_log_abort(ngx_err_t err, const char *text, void *param)
+void ngx_cdecl
+ngx_log_abort(ngx_err_t err, const char *fmt, ...)
{
- ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err, text, param);
+ u_char *p;
+ va_list args;
+ u_char errstr[NGX_MAX_CONF_ERRSTR];
+
+ va_start(args, fmt);
+ p = ngx_vsnprintf(errstr, sizeof(errstr) - 1, fmt, args);
+ va_end(args);
+
+ ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, err,
+ "%*s", p - errstr, errstr);
}