From cbdbb369c0805ba5d7dc0790883392ef488f478a Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Nov 2020 06:47:31 +0900 Subject: [PATCH] net/tcp/tcp_input.c: Fix syslog formats Note: tx_unacked is either uint16_t or uint32_t depending on the config. --- net/tcp/tcp_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/tcp/tcp_input.c b/net/tcp/tcp_input.c index 990599b33e..b93f79bf6c 100644 --- a/net/tcp/tcp_input.c +++ b/net/tcp/tcp_input.c @@ -511,7 +511,8 @@ found: nwarn("WARNING: ackseq > unackseq\n"); nwarn("sndseq=%" PRIu32 " tx_unacked=%" PRIu32 " unackseq=%" PRIu32 " ackseq=%" PRIu32 "\n", - tcp_getsequence(conn->sndseq), conn->tx_unacked, + tcp_getsequence(conn->sndseq), + (uint32_t)conn->tx_unacked, unackseq, ackseq); conn->tx_unacked = 0; @@ -526,7 +527,7 @@ found: ninfo("sndseq: %08" PRIx32 "->%08" PRIx32 " unackseq: %08" PRIx32 " new tx_unacked: %" PRId32 "\n", tcp_getsequence(conn->sndseq), ackseq, unackseq, - conn->tx_unacked); + (uint32_t)conn->tx_unacked); tcp_setsequence(conn->sndseq, ackseq); /* Do RTT estimation, unless we have done retransmissions. */