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
@@ -2399,8 +2399,8 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
|
||||
__be32 prf = htonl(mask_pfx(tn->key, tn->pos));
|
||||
|
||||
seq_indent(seq, iter->depth-1);
|
||||
seq_printf(seq, " +-- " NIPQUAD_FMT "/%d %d %d %d\n",
|
||||
NIPQUAD(prf), tn->pos, tn->bits, tn->full_children,
|
||||
seq_printf(seq, " +-- %pI4/%d %d %d %d\n",
|
||||
&prf, tn->pos, tn->bits, tn->full_children,
|
||||
tn->empty_children);
|
||||
|
||||
} else {
|
||||
@@ -2410,7 +2410,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
|
||||
__be32 val = htonl(l->key);
|
||||
|
||||
seq_indent(seq, iter->depth);
|
||||
seq_printf(seq, " |-- " NIPQUAD_FMT "\n", NIPQUAD(val));
|
||||
seq_printf(seq, " |-- %pI4\n", &val);
|
||||
|
||||
hlist_for_each_entry_rcu(li, node, &l->list, hlist) {
|
||||
struct fib_alias *fa;
|
||||
|
Reference in New Issue
Block a user