diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 9a2b32fc0bf..09fee452fe1 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 */