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

@@ -155,7 +155,8 @@ nxt_conn_connect_test(nxt_task_t *task, void *obj, void *data)
c->socket.error = err;
nxt_log(task, nxt_socket_error_level(err), "connect(%d, %*s) failed %E",
c->socket.fd, c->remote->length, nxt_sockaddr_start(c->remote));
c->socket.fd, (size_t) c->remote->length,
nxt_sockaddr_start(c->remote));
nxt_conn_connect_error(task, c, data);
}