diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:08:20 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-03-30 14:08:20 +0300 |
commit | 82b899b1365431951afc1da9b2b30065ac98fc94 (patch) | |
tree | 2f206a5e66616a6ad4459851a3f40c070d57630e /src/nxt_unit.c | |
parent | f94e31b294d69df40b59970ef4c721324cd3596e (diff) | |
download | unit-82b899b1365431951afc1da9b2b30065ac98fc94.tar.gz unit-82b899b1365431951afc1da9b2b30065ac98fc94.tar.bz2 |
Attributing libunit logging function for arguments validation.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_unit.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c index 7a4124fb..77e36771 100644 --- a/src/nxt_unit.c +++ b/src/nxt_unit.c @@ -971,8 +971,10 @@ nxt_unit_process_req_headers(nxt_unit_ctx_t *ctx, nxt_unit_recv_msg_t *recv_msg) req_impl->websocket = 0; nxt_unit_debug(ctx, "#%"PRIu32": %.*s %.*s (%d)", recv_msg->stream, - (int) r->method_length, nxt_unit_sptr_get(&r->method), - (int) r->target_length, nxt_unit_sptr_get(&r->target), + (int) r->method_length, + (char *) nxt_unit_sptr_get(&r->method), + (int) r->target_length, + (char *) nxt_unit_sptr_get(&r->target), (int) r->content_length); lib = nxt_container_of(ctx->unit, nxt_unit_impl_t, unit); @@ -2084,7 +2086,7 @@ nxt_unit_mmap_buf_send(nxt_unit_ctx_t *ctx, uint32_t stream, nxt_unit_debug(ctx, "process %d allocated_chunks %d", mmap_buf->process->pid, - mmap_buf->process->outgoing.allocated_chunks); + (int) mmap_buf->process->outgoing.allocated_chunks); } else { if (nxt_slow_path(mmap_buf->plain_ptr == NULL @@ -2972,7 +2974,7 @@ unlock: nxt_unit_debug(ctx, "process %d allocated_chunks %d", process->pid, - process->outgoing.allocated_chunks); + (int) process->outgoing.allocated_chunks); pthread_mutex_unlock(&process->outgoing.mutex); @@ -3691,7 +3693,7 @@ nxt_unit_mmap_release(nxt_unit_ctx_t *ctx, nxt_unit_debug(ctx, "process %d allocated_chunks %d", process->pid, - process->outgoing.allocated_chunks); + (int) process->outgoing.allocated_chunks); } if (hdr->dst_pid == lib->pid |