Use correct format specifier for ssize_t, found by Coverity Scan

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-07 19:35:53 +01:00
parent 774523f6e2
commit 884a0a180b

View File

@ -1698,7 +1698,7 @@ void fprintlog(struct filed *f, struct buf_msg *buffer)
sin = (struct sockaddr_in *)ai->ai_addr;
inet_ntop(AF_INET, &sin->sin_addr, buf, sizeof(buf));
}
logit("Sent %d bytes to remote %s on socket %d ...\n",
logit("Sent %zd bytes to remote %s on socket %d ...\n",
lsent, buf, finet[i + 1]);
if (lsent == len) {
err = -1;