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
@@ -1070,11 +1070,8 @@ static int inet_sk_reselect_saddr(struct sock *sk)
|
||||
return 0;
|
||||
|
||||
if (sysctl_ip_dynaddr > 1) {
|
||||
printk(KERN_INFO "%s(): shifting inet->"
|
||||
"saddr from " NIPQUAD_FMT " to " NIPQUAD_FMT "\n",
|
||||
__func__,
|
||||
NIPQUAD(old_saddr),
|
||||
NIPQUAD(new_saddr));
|
||||
printk(KERN_INFO "%s(): shifting inet->saddr from %pI4 to %pI4\n",
|
||||
__func__, &old_saddr, &new_saddr);
|
||||
}
|
||||
|
||||
inet->saddr = inet->rcv_saddr = new_saddr;
|
||||
|
Reference in New Issue
Block a user