misc: replace NIPQUAD()
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
be85940548
commit
3685f25de1
@ -112,10 +112,10 @@ struct nf_conntrack_tuple_mask
|
||||
static inline void nf_ct_dump_tuple_ip(const struct nf_conntrack_tuple *t)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printk("tuple %p: %u " NIPQUAD_FMT ":%hu -> " NIPQUAD_FMT ":%hu\n",
|
||||
printk("tuple %p: %u %pI4:%hu -> %pI4:%hu\n",
|
||||
t, t->dst.protonum,
|
||||
NIPQUAD(t->src.u3.ip), ntohs(t->src.u.all),
|
||||
NIPQUAD(t->dst.u3.ip), ntohs(t->dst.u.all));
|
||||
&t->src.u3.ip, ntohs(t->src.u.all),
|
||||
&t->dst.u3.ip, ntohs(t->dst.u.all));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user