]> git.kaiwu.me - njs.git/commitdiff
Fixed the format specifier for ctx->status in debug log.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 30 May 2018 14:17:13 +0000 (17:17 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 30 May 2018 14:17:13 +0000 (17:17 +0300)
nginx/ngx_http_js_module.c

index b0e3ec6927e99621a459049b6d215a2c514db7eb..3572a4cc6fde2f9976a0d82a28ac978bf0afb324 100644 (file)
@@ -694,7 +694,7 @@ ngx_http_js_content_event_handler(ngx_http_request_t *r)
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                   "http js content rc: %ui", ctx->status);
+                   "http js content rc: %i", ctx->status);
 
     ngx_http_finalize_request(r, ctx->status);
 }
@@ -715,7 +715,7 @@ ngx_http_js_content_write_event_handler(ngx_http_request_t *r)
 
     if (!njs_vm_pending(ctx->vm)) {
         ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                       "http js content rc: %ui", ctx->status);
+                       "http js content rc: %i", ctx->status);
 
         ngx_http_finalize_request(r, ctx->status);
         return;