summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:33 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:33 +0300
commit771e9d3cc3a59585a3d8a6ae2baddb18f335c3dd (patch)
treee50d2d18f95dec00f7f643dcf6251c1baa44e7b8 /src/nxt_port_memory.c
parent67c64a99fb78f48c3deacc7d89e73de72522806b (diff)
downloadunit-771e9d3cc3a59585a3d8a6ae2baddb18f335c3dd.tar.gz
unit-771e9d3cc3a59585a3d8a6ae2baddb18f335c3dd.tar.bz2
Fixed formatting in nxt_sprintf() and logging.
Diffstat (limited to 'src/nxt_port_memory.c')
-rw-r--r--src/nxt_port_memory.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_port_memory.c b/src/nxt_port_memory.c
index b3bfb7e2..87e7c1bc 100644
--- a/src/nxt_port_memory.c
+++ b/src/nxt_port_memory.c
@@ -158,7 +158,7 @@ nxt_port_mmap_buf_completion(nxt_task_t *task, void *obj, void *data)
nxt_port_mmap_free_junk(p, b->mem.end - p);
- nxt_debug(task, "mmap buf completion: %p [%p,%d] (sent=%d), "
+ nxt_debug(task, "mmap buf completion: %p [%p,%uz] (sent=%d), "
"%PI->%PI,%d,%d", b, b->mem.start, b->mem.end - b->mem.start,
b->is_port_mmap_sent, hdr->src_pid, hdr->dst_pid, hdr->id, c);
@@ -555,7 +555,7 @@ nxt_port_mmap_tracking_read(nxt_task_t *task, nxt_port_recv_msg_t *msg)
b = msg->buf;
if (nxt_buf_used_size(b) < (int)sizeof(nxt_port_mmap_tracking_msg_t)) {
- nxt_debug(task, "too small message %u", nxt_buf_used_size(b));
+ nxt_debug(task, "too small message %O", nxt_buf_used_size(b));
return 0;
}
@@ -629,7 +629,7 @@ nxt_port_mmap_get_buf(nxt_task_t *task, nxt_port_t *port, size_t size)
nchunks++;
}
- nxt_debug(task, "outgoing mmap buf allocation: %p [%p,%d] %PI->%PI,%d,%d",
+ nxt_debug(task, "outgoing mmap buf allocation: %p [%p,%uz] %PI->%PI,%d,%d",
b, b->mem.start, b->mem.end - b->mem.start,
hdr->src_pid, hdr->dst_pid, hdr->id, c);
@@ -709,7 +709,7 @@ nxt_port_mmap_increase_buf(nxt_task_t *task, nxt_buf_t *b, size_t size,
c--;
}
- nxt_debug(task, "failed to increase, %d chunks busy", nchunks);
+ nxt_debug(task, "failed to increase, %uz chunks busy", nchunks);
return NXT_ERROR;
@@ -760,7 +760,7 @@ nxt_port_mmap_get_incoming_buf(nxt_task_t *task, nxt_port_t *port,
b->parent = mmap_handler;
nxt_port_mmap_handler_use(mmap_handler, 1);
- nxt_debug(task, "incoming mmap buf allocation: %p [%p,%d] %PI->%PI,%d,%d",
+ nxt_debug(task, "incoming mmap buf allocation: %p [%p,%uz] %PI->%PI,%d,%d",
b, b->mem.start, b->mem.end - b->mem.start,
hdr->src_pid, hdr->dst_pid, hdr->id, mmap_msg->chunk_id);