net/tcp/tcp_send_unbuffered.c: Fix syslog formats
This commit is contained in:
parent
c1f8e270eb
commit
28fda4e5bb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue