summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-08-04 18:00:40 +0300
committerValentin Bartenev <vbart@nginx.com>2017-08-04 18:00:40 +0300
commit617da0d023d12e71d1c5ccb56072bcffb16a3e5e (patch)
tree7b5a9259f81e970c614b815c1395205c7744a883 /src
parente62840cd54895266030c7aa875263411359483ee (diff)
downloadunit-617da0d023d12e71d1c5ccb56072bcffb16a3e5e.tar.gz
unit-617da0d023d12e71d1c5ccb56072bcffb16a3e5e.tar.bz2
Fixed building without debug after c1ae75b4e17c and 6281674ecf4f.
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c8
-rw-r--r--src/nxt_master_process.c7
2 files changed, 4 insertions, 11 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index f26dccf5..221393eb 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -780,15 +780,11 @@ static void
nxt_controller_conf_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
void *data)
{
- size_t size;
- nxt_buf_t *b;
nxt_controller_request_t *req;
nxt_controller_response_t resp;
- b = msg->buf;
- size = b->mem.free - b->mem.pos;
-
- nxt_debug(task, "controller conf ready: %*s ...", size, b->mem.pos);
+ nxt_debug(task, "controller conf ready: %*s",
+ nxt_buf_mem_used_size(&msg->buf->mem), msg->buf->mem.pos);
nxt_memzero(&resp, sizeof(nxt_controller_response_t));
diff --git a/src/nxt_master_process.c b/src/nxt_master_process.c
index bb0e4f32..0df32631 100644
--- a/src/nxt_master_process.c
+++ b/src/nxt_master_process.c
@@ -148,11 +148,8 @@ static nxt_conf_map_t nxt_common_app_conf[] = {
static void
nxt_port_master_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
{
- nxt_buf_t *b;
-
- b = msg->buf;
-
- nxt_debug(task, "master data: %*s", b->mem.free - b->mem.pos, b->mem.pos);
+ nxt_debug(task, "master data: %*s",
+ nxt_buf_mem_used_size(&msg->buf->mem), msg->buf->mem.pos);
}