net/tcp/tcp_sendfile.c: Fix syslog formats
This commit is contained in:
parent
17f8bcc574
commit
cee4261c0d
@ -152,7 +152,7 @@ static uint16_t ack_eventhandler(FAR struct net_driver_s *dev,
|
||||
*/
|
||||
|
||||
pstate->snd_acked = tcp_getsequence(tcp->ackno) - pstate->snd_isn;
|
||||
ninfo("ACK: acked=%d sent=%zd flen=%zu\n",
|
||||
ninfo("ACK: acked=%" PRId32 " sent=%zd flen=%zu\n",
|
||||
pstate->snd_acked, pstate->snd_sent, pstate->snd_flen);
|
||||
|
||||
dev->d_sndlen = 0;
|
||||
@ -275,7 +275,7 @@ static uint16_t sendfile_eventhandler(FAR struct net_driver_s *dev,
|
||||
return flags;
|
||||
}
|
||||
|
||||
ninfo("flags: %04x acked: %d sent: %zd\n",
|
||||
ninfo("flags: %04x acked: %" PRId32 " sent: %zd\n",
|
||||
flags, pstate->snd_acked, pstate->snd_sent);
|
||||
|
||||
/* We get here if (1) not all of the data has been ACKed, (2) we have been
|
||||
@ -343,7 +343,8 @@ static uint16_t sendfile_eventhandler(FAR struct net_driver_s *dev,
|
||||
/* Update the amount of data sent (but not necessarily ACKed) */
|
||||
|
||||
pstate->snd_sent += sndlen;
|
||||
ninfo("pid: %d SEND: acked=%d sent=%zd flen=%zu\n", getpid(),
|
||||
ninfo("pid: %d SEND: acked=%" PRId32 " sent=%zd flen=%zu\n",
|
||||
getpid(),
|
||||
pstate->snd_acked, pstate->snd_sent, pstate->snd_flen);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user