net/sixlowpan/sixlowpan_tcpsend.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-12-01 11:21:50 +09:00 committed by Xiang Xiao
parent 613bf03457
commit e4760ca93b

View File

@ -24,6 +24,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <inttypes.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
@ -332,7 +333,7 @@ static uint16_t tcp_send_eventhandler(FAR struct net_driver_s *dev,
return flags; return flags;
} }
ninfo("flags: %04x acked: %u sent: %zu\n", ninfo("flags: %04x acked: %" PRIu32 " sent: %zu\n",
flags, sinfo->s_acked, sinfo->s_sent); flags, sinfo->s_acked, sinfo->s_sent);
/* If this packet contains an acknowledgement, then update the count of /* If this packet contains an acknowledgement, then update the count of
@ -350,7 +351,7 @@ static uint16_t tcp_send_eventhandler(FAR struct net_driver_s *dev,
*/ */
sinfo->s_acked = tcp_getsequence(tcp->ackno) - sinfo->s_isn; sinfo->s_acked = tcp_getsequence(tcp->ackno) - sinfo->s_isn;
ninfo("ACK: acked=%d sent=%zd buflen=%zd\n", ninfo("ACK: acked=%" PRId32 " sent=%zd buflen=%zd\n",
sinfo->s_acked, sinfo->s_sent, sinfo->s_buflen); sinfo->s_acked, sinfo->s_sent, sinfo->s_buflen);
/* Have all of the bytes in the buffer been sent and acknowledged? */ /* Have all of the bytes in the buffer been sent and acknowledged? */
@ -466,8 +467,8 @@ static uint16_t tcp_send_eventhandler(FAR struct net_driver_s *dev,
*/ */
seqno = sinfo->s_sent + sinfo->s_isn; seqno = sinfo->s_sent + sinfo->s_isn;
ninfo("Sending: sndseq %08lx->%08x\n", ninfo("Sending: sndseq %08" PRIx32 "->%08" PRIx32 "\n",
(unsigned long)tcp_getsequence(conn->sndseq), seqno); tcp_getsequence(conn->sndseq), seqno);
tcp_setsequence(conn->sndseq, seqno); tcp_setsequence(conn->sndseq, seqno);
@ -518,9 +519,10 @@ static uint16_t tcp_send_eventhandler(FAR struct net_driver_s *dev,
g_netstats.tcp.sent++; g_netstats.tcp.sent++;
#endif #endif
ninfo("Sent: acked=%d sent=%zd buflen=%zd tx_unacked=%d\n", ninfo("Sent: acked=%" PRId32 " sent=%zd "
"buflen=%zd tx_unacked=%" PRId32 "\n",
sinfo->s_acked, sinfo->s_sent, sinfo->s_buflen, sinfo->s_acked, sinfo->s_sent, sinfo->s_buflen,
conn->tx_unacked); (uint32_t)conn->tx_unacked);
} }
} }