summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_controller.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2017-07-21 15:20:45 +0300
committerValentin Bartenev <vbart@nginx.com>2017-07-21 15:20:45 +0300
commit578cd547c0f121267f8f66a0523fab67c433a90b (patch)
tree9f6f30cf3cef034a2a8eddf8a4ca650564f4a269 /src/nxt_controller.c
parent68d35e915726a16aa0b8501ea840dd932f86abba (diff)
downloadunit-578cd547c0f121267f8f66a0523fab67c433a90b.tar.gz
unit-578cd547c0f121267f8f66a0523fab67c433a90b.tar.bz2
Fixed building without debug.
Diffstat (limited to '')
-rw-r--r--src/nxt_controller.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nxt_controller.c b/src/nxt_controller.c
index ec0f99bc..660441f7 100644
--- a/src/nxt_controller.c
+++ b/src/nxt_controller.c
@@ -779,7 +779,7 @@ nxt_controller_conf_apply(nxt_task_t *task, nxt_controller_request_t *req)
void
nxt_port_controller_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
{
- size_t size, dump_size;
+ size_t size;
nxt_buf_t *b;
nxt_controller_request_t *req;
nxt_controller_response_t resp;
@@ -787,9 +787,7 @@ nxt_port_controller_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
b = msg->buf;
size = b->mem.free - b->mem.pos;
- dump_size = size > 300 ? 300 : size;
-
- nxt_debug(task, "contoller data: %*s ...", dump_size, b->mem.pos);
+ nxt_debug(task, "contoller data: %*s ...", size, b->mem.pos);
nxt_memzero(&resp, sizeof(nxt_controller_response_t));