aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-14 07:09:00 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 07:09:00 -0400
commita7d632b6b4ad1c92746ed409e41f9dc571ec04e2 (patch)
tree90e6aa51a9df50aa4a437749e89356ab15a0ff5f /net/ipv4/fib_trie.c
parent334f8b2afd9652e20f67ddee4fec483ed860425b (diff)
[IPV4]: Use NIPQUAD_FMT to format ipv4 addresses.
And use %u to format port. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 1ada5a6b03ea..ea294fffb9ce 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2424,7 +2424,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
2424 __be32 prf = htonl(mask_pfx(tn->key, tn->pos)); 2424 __be32 prf = htonl(mask_pfx(tn->key, tn->pos));
2425 2425
2426 seq_indent(seq, iter->depth-1); 2426 seq_indent(seq, iter->depth-1);
2427 seq_printf(seq, " +-- %d.%d.%d.%d/%d %d %d %d\n", 2427 seq_printf(seq, " +-- " NIPQUAD_FMT "/%d %d %d %d\n",
2428 NIPQUAD(prf), tn->pos, tn->bits, tn->full_children, 2428 NIPQUAD(prf), tn->pos, tn->bits, tn->full_children,
2429 tn->empty_children); 2429 tn->empty_children);
2430 2430
@@ -2435,7 +2435,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v)
2435 __be32 val = htonl(l->key); 2435 __be32 val = htonl(l->key);
2436 2436
2437 seq_indent(seq, iter->depth); 2437 seq_indent(seq, iter->depth);
2438 seq_printf(seq, " |-- %d.%d.%d.%d\n", NIPQUAD(val)); 2438 seq_printf(seq, " |-- " NIPQUAD_FMT "\n", NIPQUAD(val));
2439 2439
2440 hlist_for_each_entry_rcu(li, node, &l->list, hlist) { 2440 hlist_for_each_entry_rcu(li, node, &l->list, hlist) {
2441 struct fib_alias *fa; 2441 struct fib_alias *fa;