net: replace NIPQUAD() in net/ipv4/ net/ipv6/
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u can be replaced with %pI4 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
cffee385d7
commit
673d57e723
@@ -299,8 +299,8 @@ static void tcp_retransmit_timer(struct sock *sk)
|
||||
#ifdef TCP_DEBUG
|
||||
struct inet_sock *inet = inet_sk(sk);
|
||||
if (sk->sk_family == AF_INET) {
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer " NIPQUAD_FMT ":%u/%u shrinks window %u:%u. Repaired.\n",
|
||||
NIPQUAD(inet->daddr), ntohs(inet->dport),
|
||||
LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer %pI4:%u/%u shrinks window %u:%u. Repaired.\n",
|
||||
&inet->daddr, ntohs(inet->dport),
|
||||
inet->num, tp->snd_una, tp->snd_nxt);
|
||||
}
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
|
||||
Reference in New Issue
Block a user