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/05/19 05:36:56 UTC

[incubator-nuttx] branch master updated: net: tcp: Fix port info in warning message in tcp_input.c

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


The following commit(s) were added to refs/heads/master by this push:
     new c7500c5  net: tcp: Fix port info in warning message in tcp_input.c
c7500c5 is described below

commit c7500c5c9d8b0813f5a1db0d77de9fb5e3eebdd0
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Tue May 19 13:16:54 2020 +0900

    net: tcp: Fix port info in warning message in tcp_input.c
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 net/tcp/tcp_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c
index 9a2b32f..09fee45 100644
--- a/net/tcp/tcp_input.c
+++ b/net/tcp/tcp_input.c
@@ -591,7 +591,7 @@ found:
 
                 nwarn("WARNING: Listen canceled while waiting for ACK on "
                       "port %d\n",
-                      tcp->destport);
+                      ntohs(tcp->destport));
 
                 /* Free the connection structure */