Mercurial > hg > nginx
comparison src/http/ngx_http_variables.c @ 5327:6b479db5b52b
Format specifier fixes in error logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Aug 2013 20:47:16 +0400 |
parents | 12dd27b74117 |
children | 7094d6da2806 |
comparison
equal
deleted
inserted
replaced
5326:d22eb224aedf | 5327:6b479db5b52b |
---|---|
485 | 485 |
486 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); | 486 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); |
487 | 487 |
488 if (cmcf->variables.nelts <= index) { | 488 if (cmcf->variables.nelts <= index) { |
489 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, | 489 ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, |
490 "unknown variable index: %d", index); | 490 "unknown variable index: %ui", index); |
491 return NULL; | 491 return NULL; |
492 } | 492 } |
493 | 493 |
494 if (r->variables[index].not_found || r->variables[index].valid) { | 494 if (r->variables[index].not_found || r->variables[index].valid) { |
495 return &r->variables[index]; | 495 return &r->variables[index]; |