net/tcp/tcp_send_unbuffered.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-23 13:14:28 +09:00 committed by Xiang Xiao
parent c1f8e270eb
commit 28fda4e5bb
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev,
return flags;
}
ninfo("flags: %04x acked: %d sent: %d\n",
ninfo("flags: %04x acked: %" PRId32 " sent: %zd\n",
flags, pstate->snd_acked, pstate->snd_sent);
/* If this packet contains an acknowledgement, then update the count of
@ -237,7 +237,7 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev,
*/
pstate->snd_acked = tcp_getsequence(tcp->ackno) - pstate->snd_isn;
ninfo("ACK: acked=%d sent=%d buflen=%d\n",
ninfo("ACK: acked=%" PRId32 " sent=%zd buflen=%zd\n",
pstate->snd_acked, pstate->snd_sent, pstate->snd_buflen);
/* Have all of the bytes in the buffer been sent and acknowledged? */
@ -450,7 +450,7 @@ static uint16_t tcpsend_eventhandler(FAR struct net_driver_s *dev,
/* Update the amount of data sent (but not necessarily ACKed) */
pstate->snd_sent += sndlen;
ninfo("SEND: acked=%d sent=%d buflen=%d\n",
ninfo("SEND: acked=%" PRId32 " sent=%zd buflen=%zd\n",
pstate->snd_acked, pstate->snd_sent, pstate->snd_buflen);
}
}