summaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs/ip_vs_dh.c
diff options
context:
space:
mode:
authorHarvey Harrison2008-10-31 08:54:29 +0100
committerDavid S. Miller2008-10-31 08:54:29 +0100
commit14d5e834f6b36667c7da56374645f99b6cf30814 (patch)
tree14bfecb3f5b7eaeec508e8d069265a0583d6be9f /net/netfilter/ipvs/ip_vs_dh.c
parentnet: replace NIPQUAD() in net/ipv4/ net/ipv6/ (diff)
downloadkernel-qcow2-linux-14d5e834f6b36667c7da56374645f99b6cf30814.tar.gz
kernel-qcow2-linux-14d5e834f6b36667c7da56374645f99b6cf30814.tar.xz
kernel-qcow2-linux-14d5e834f6b36667c7da56374645f99b6cf30814.zip
net: replace NIPQUAD() in net/netfilter/
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>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_dh.c')
-rw-r--r--net/netfilter/ipvs/ip_vs_dh.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c
index a16943fd72f1..77179b913be0 100644
--- a/net/netfilter/ipvs/ip_vs_dh.c
+++ b/net/netfilter/ipvs/ip_vs_dh.c
@@ -215,11 +215,8 @@ ip_vs_dh_schedule(struct ip_vs_service *svc, const struct sk_buff *skb)
return NULL;
}
- IP_VS_DBG(6, "DH: destination IP address %u.%u.%u.%u "
- "--> server %u.%u.%u.%u:%d\n",
- NIPQUAD(iph->daddr),
- NIPQUAD(dest->addr.ip),
- ntohs(dest->port));
+ IP_VS_DBG(6, "DH: destination IP address %pI4 --> server %pI4:%d\n",
+ &iph->daddr, &dest->addr.ip, ntohs(dest->port));
return dest;
}