From 28fda4e5bbba9a9b0b7faabfa35bbd1729be5219 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 23 Nov 2020 13:14:28 +0900 Subject: [PATCH] net/tcp/tcp_send_unbuffered.c: Fix syslog formats --- net/tcp/tcp_send_unbuffered.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/tcp/tcp_send_unbuffered.c b/net/tcp/tcp_send_unbuffered.c index 3f9bca9449..abdd11decb 100644 --- a/net/tcp/tcp_send_unbuffered.c +++ b/net/tcp/tcp_send_unbuffered.c @@ -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); } }