summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_application.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:32 +0300
committerSergey Kandaurov <pluknet@nginx.com>2018-01-24 15:16:32 +0300
commit67c64a99fb78f48c3deacc7d89e73de72522806b (patch)
tree384b433c94fc63e27d21d6b05153d162655e79bc /src/nxt_application.c
parent477e8177b70acb694759e62d830b8a311a736324 (diff)
downloadunit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.gz
unit-67c64a99fb78f48c3deacc7d89e73de72522806b.tar.bz2
Using size_t for the field width type of the "%*s" specifier.
Diffstat (limited to 'src/nxt_application.c')
-rw-r--r--src/nxt_application.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nxt_application.c b/src/nxt_application.c
index 69f68616..462767f3 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -476,7 +476,8 @@ nxt_app_msg_write(nxt_task_t *task, nxt_app_wmsg_t *msg, u_char *c, size_t size)
nxt_memcpy(dst, c, size);
dst[size] = 0;
- nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, (int) size, c);
+ nxt_debug(task, "nxt_app_msg_write: %uz %*s", size, size, c);
+
} else {
dst_length = 1;
@@ -598,8 +599,9 @@ nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg, nxt_str_t *str)
buf->mem.pos += length;
- nxt_debug(task, "nxt_read_str: %d %*s", (int) length - 1,
- (int) length - 1, str->start);
+ nxt_debug(task, "nxt_read_str: %uz %*s", length - 1,
+ length - 1, str->start);
+
} else {
str->start = NULL;
str->length = 0;