diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2018-01-24 15:16:32 +0300 |
commit | 67c64a99fb78f48c3deacc7d89e73de72522806b (patch) | |
tree | 384b433c94fc63e27d21d6b05153d162655e79bc /src/nxt_application.c | |
parent | 477e8177b70acb694759e62d830b8a311a736324 (diff) | |
download | unit-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.c | 8 |
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; |