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/25 13:12:03 UTC
[incubator-nuttx] 26/35: 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 af6719965f450ab8177a8c3f4e4cf0ee9fef7dce
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 25 19:45:45 2020 +0900
net/tcp/tcp_appsend.c: Fix syslog formats
---
net/tcp/tcp_appsend.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/net/tcp/tcp_appsend.c b/net/tcp/tcp_appsend.c
index f61da7e..fb05f75 100644
--- a/net/tcp/tcp_appsend.c
+++ b/net/tcp/tcp_appsend.c
@@ -44,6 +44,7 @@
#include <nuttx/config.h>
#if defined(CONFIG_NET) && defined(CONFIG_NET_TCP)
+#include <inttypes.h>
#include <stdint.h>
#include <assert.h>
#include <debug.h>
@@ -85,7 +86,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: %d\n",
+ ninfo("result: %04x d_sndlen: %d conn->tx_unacked: %" PRId32 "\n",
result, dev->d_sndlen, conn->tx_unacked);
#ifdef CONFIG_NET_TCP_DELAYED_ACK
@@ -271,7 +272,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: %d\n",
+ ninfo("result: %04x d_sndlen: %d conn->tx_unacked: %" PRId32 "\n",
result, dev->d_sndlen, conn->tx_unacked);
/* Get the IP header length associated with the IP domain configured for