You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/27 11:19:09 UTC
[incubator-nuttx] 02/48: net/tcp/tcp_appsend.c: Fix syslog formats
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit cc9b3a3ec50aad15cfc2ba278ce34b833b0d74bc
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Nov 26 06:49:59 2020 +0900
net/tcp/tcp_appsend.c: Fix syslog formats
Note: tx_unacked is either uint16_t or uint32_t depending on the config.
---
net/tcp/tcp_appsend.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/tcp/tcp_appsend.c b/net/tcp/tcp_appsend.c
index fb05f75..cff0740 100644
--- a/net/tcp/tcp_appsend.c
+++ b/net/tcp/tcp_appsend.c
@@ -87,7 +87,7 @@ void tcp_appsend(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
uint8_t hdrlen;
ninfo("result: %04x d_sndlen: %d conn->tx_unacked: %" PRId32 "\n",
- result, dev->d_sndlen, conn->tx_unacked);
+ result, dev->d_sndlen, (uint32_t)conn->tx_unacked);
#ifdef CONFIG_NET_TCP_DELAYED_ACK
/* Did the caller request that an ACK be sent? */
@@ -273,7 +273,7 @@ void tcp_rexmit(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn,
uint8_t hdrlen;
ninfo("result: %04x d_sndlen: %d conn->tx_unacked: %" PRId32 "\n",
- result, dev->d_sndlen, conn->tx_unacked);
+ result, dev->d_sndlen, (uint32_t)conn->tx_unacked);
/* Get the IP header length associated with the IP domain configured for
* this TCP connection.