mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
tcp_should_send_recvwindow: Remove function name from ninfo()
ninfo() itself usually prefixes the function name automatically for us.
This commit is contained in:
committed by
Xiang Xiao
parent
b16de69e56
commit
1448de4451
@@ -210,7 +210,7 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
|||||||
|
|
||||||
if (win <= oldwin)
|
if (win <= oldwin)
|
||||||
{
|
{
|
||||||
ninfo("tcp_should_send_recvwindow: false: "
|
ninfo("Returning false: "
|
||||||
"rcvseq=%" PRIu32 ", rcv_adv=%" PRIu32 ", "
|
"rcvseq=%" PRIu32 ", rcv_adv=%" PRIu32 ", "
|
||||||
"old win=%" PRIu16 ", new win=%" PRIu16 "\n",
|
"old win=%" PRIu16 ", new win=%" PRIu16 "\n",
|
||||||
rcvseq, conn->rcv_adv, oldwin, win);
|
rcvseq, conn->rcv_adv, oldwin, win);
|
||||||
@@ -230,7 +230,7 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
|||||||
maxwin = tcp_maxrcvwin(conn);
|
maxwin = tcp_maxrcvwin(conn);
|
||||||
if (2 * adv >= maxwin)
|
if (2 * adv >= maxwin)
|
||||||
{
|
{
|
||||||
ninfo("tcp_should_send_recvwindow: true: "
|
ninfo("Returning true: "
|
||||||
"adv=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
"adv=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||||
adv, maxwin);
|
adv, maxwin);
|
||||||
return true;
|
return true;
|
||||||
@@ -243,13 +243,13 @@ bool tcp_should_send_recvwindow(FAR struct tcp_conn_s *conn)
|
|||||||
mss = tcp_rx_mss(dev);
|
mss = tcp_rx_mss(dev);
|
||||||
if (adv >= 2 * mss)
|
if (adv >= 2 * mss)
|
||||||
{
|
{
|
||||||
ninfo("tcp_should_send_recvwindow: true: "
|
ninfo("Returning true: "
|
||||||
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||||
adv, mss, maxwin);
|
adv, mss, maxwin);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ninfo("tcp_should_send_recvwindow: false: "
|
ninfo("Returning false: "
|
||||||
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
"adv=%" PRIu16 ", mss=%" PRIu16 ", maxwin=%" PRIu16 "\n",
|
||||||
adv, mss, maxwin);
|
adv, mss, maxwin);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user