net/tcp/tcp_input.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-25 19:43:29 +09:00 committed by Xiang Xiao
parent 17654f592e
commit 40d4c03a8c

View File

@ -509,7 +509,7 @@ found:
if ((conn->tcpstateflags & TCP_STATE_MASK) == TCP_ESTABLISHED) if ((conn->tcpstateflags & TCP_STATE_MASK) == TCP_ESTABLISHED)
{ {
nwarn("WARNING: ackseq > unackseq\n"); nwarn("WARNING: ackseq > unackseq\n");
nwarn("sndseq=%" PRIu32 " tx_unacked=%u " nwarn("sndseq=%" PRIu32 " tx_unacked=%" PRIu32
" unackseq=%" PRIu32 " ackseq=%" PRIu32 "\n", " unackseq=%" PRIu32 " ackseq=%" PRIu32 "\n",
tcp_getsequence(conn->sndseq), conn->tx_unacked, tcp_getsequence(conn->sndseq), conn->tx_unacked,
unackseq, ackseq); unackseq, ackseq);
@ -524,7 +524,7 @@ found:
*/ */
ninfo("sndseq: %08" PRIx32 "->%08" PRIx32 ninfo("sndseq: %08" PRIx32 "->%08" PRIx32
" unackseq: %08" PRIx32 " new tx_unacked: %d\n", " unackseq: %08" PRIx32 " new tx_unacked: %" PRId32 "\n",
tcp_getsequence(conn->sndseq), ackseq, unackseq, tcp_getsequence(conn->sndseq), ackseq, unackseq,
conn->tx_unacked); conn->tx_unacked);
tcp_setsequence(conn->sndseq, ackseq); tcp_setsequence(conn->sndseq, ackseq);