summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/tcp')
-rw-r--r--nuttx/net/tcp/Kconfig10
-rw-r--r--nuttx/net/tcp/tcp.h6
-rw-r--r--nuttx/net/tcp/tcp_wrbuffer_dump.c2
3 files changed, 14 insertions, 4 deletions
diff --git a/nuttx/net/tcp/Kconfig b/nuttx/net/tcp/Kconfig
index 2fdb351f2..5989d3d90 100644
--- a/nuttx/net/tcp/Kconfig
+++ b/nuttx/net/tcp/Kconfig
@@ -114,6 +114,16 @@ config NET_TCP_WRBUFFER_DEBUG
write buffer logic and do not want to get overloaded with other
network-related debug output.
+config NET_TCP_WRBUFFER_DUMP
+ bool "Force write buffer dump"
+ default n
+ depends on DEBUG_NET || NET_TCP_WRBUFFER_DEBUG
+ select NET_IOB_DEBUG
+ ---help---
+ Dump the contents of the write buffers. You do not want to do this
+ unless you really want to analyze the write buffer transfers in
+ detail.
+
endif # NET_TCP_WRITE_BUFFERS
config NET_TCP_RECVDELAY
diff --git a/nuttx/net/tcp/tcp.h b/nuttx/net/tcp/tcp.h
index a18b78a6c..8da77d61f 100644
--- a/nuttx/net/tcp/tcp.h
+++ b/nuttx/net/tcp/tcp.h
@@ -120,7 +120,7 @@ void tcp_wrbuffer_release(FAR struct tcp_wrbuffer_s *wrb);
#endif /* CONFIG_NET_TCP_WRITE_BUFFERS */
/****************************************************************************
- * Function: tcp_writebuffer_dump
+ * Function: tcp_wrbuffer_dump
*
* Description:
* Dump the contents of a write buffer.
@@ -129,9 +129,9 @@ void tcp_wrbuffer_release(FAR struct tcp_wrbuffer_s *wrb);
#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
#ifdef CONFIG_DEBUG
-void tcp_writebuffer_dump(FAR const char *msg, FAR struct tcp_wrbuffer_s *wrb);
+void tcp_wrbuffer_dump(FAR const char *msg, FAR struct tcp_wrbuffer_s *wrb);
#else
-# define tcp_writebuffer_dump(msg,wrb)
+# define tcp_wrbuffer_dump(msg,wrb)
#endif
#endif /* CONFIG_NET_TCP_WRITE_BUFFERS */
diff --git a/nuttx/net/tcp/tcp_wrbuffer_dump.c b/nuttx/net/tcp/tcp_wrbuffer_dump.c
index 910eeb304..c7ac3d657 100644
--- a/nuttx/net/tcp/tcp_wrbuffer_dump.c
+++ b/nuttx/net/tcp/tcp_wrbuffer_dump.c
@@ -81,7 +81,7 @@
void tcp_wrbuffer_dump(FAR const char *msg, FAR struct tcp_wrbuffer_s *wrb)
{
- message("%s: WRB=%p segno=%d sent=%d nrtx=%d\n",
+ message("%s: wrb=%p segno=%d sent=%d nrtx=%d\n",
msg, wrb, WRB_SEQNO(wrb), WRB_SENT(wrb), WRB_NRTX(wrb));
iob_dump("I/O Buffer Chain", WRB_IOB(wrb));
}