Using size_t for the field width type of the "%*s" specifier.

This commit is contained in:
Sergey Kandaurov
2018-01-24 15:16:32 +03:00
parent 477e8177b7
commit 67c64a99fb
13 changed files with 39 additions and 28 deletions

View File

@@ -375,7 +375,8 @@ nxt_http_request_close_handler(nxt_task_t *task, void *obj, void *data)
r->logged = 1;
// STUB
nxt_debug(task, "http request log: \"%*s \"%V %V %V\" %d\"",
r->remote->address_length, nxt_sockaddr_address(r->remote),
(size_t) r->remote->address_length,
nxt_sockaddr_address(r->remote),
r->method, &r->target, &r->version, r->status);
}