summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-02-03 11:14:06 +0300
committerMax Romanov <max.romanov@nginx.com>2020-02-03 11:14:06 +0300
commit51120e06e32502c75010644d8b63086221ea78f9 (patch)
treec6c3b63e247e22226e08a415631f42c270a85076
parent224549a578084854ab7656e01de82119a196f47b (diff)
downloadunit-51120e06e32502c75010644d8b63086221ea78f9.tar.gz
unit-51120e06e32502c75010644d8b63086221ea78f9.tar.bz2
Added missing stream argument to error message.
Found by Coverity (CID 353386).
-rw-r--r--src/nxt_unit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index 95874db3..27dc4751 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -871,7 +871,8 @@ nxt_unit_process_new_port(nxt_unit_ctx_t *ctx, nxt_unit_recv_msg_t *recv_msg)
if (nxt_slow_path(ioctl(recv_msg->fd, FIONBIO, &nb) == -1)) {
nxt_unit_alert(ctx, "#%"PRIu32": new_port: ioctl(%d, FIONBIO, 0) "
- "failed: %s (%d)", recv_msg->fd, strerror(errno), errno);
+ "failed: %s (%d)",
+ recv_msg->stream, recv_msg->fd, strerror(errno), errno);
return NXT_UNIT_ERROR;
}