summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLin Ming <mlin@ss.pku.edu.cn>2012-07-29 01:19:55 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-29 23:18:30 -0700
commit4ea4bf7ebcbacee2f4736d261efb0693e87a34c9 (patch)
tree865493c206fa14af75d0c09abf1787a466d80e0e /net
parent1a0150a93c496986297fc08304ac564213c08942 (diff)
downloadop-kernel-dev-4ea4bf7ebcbacee2f4736d261efb0693e87a34c9.zip
op-kernel-dev-4ea4bf7ebcbacee2f4736d261efb0693e87a34c9.tar.gz
ipv4: fix debug info in tnode_new
It should print size of struct rt_trie_node * allocated instead of size of struct rt_trie_node. Signed-off-by: Lin Ming <mlin@ss.pku.edu.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/fib_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 18cbc15..2a6fdc2 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -473,7 +473,7 @@ static struct tnode *tnode_new(t_key key, int pos, int bits)
}
pr_debug("AT %p s=%zu %zu\n", tn, sizeof(struct tnode),
- sizeof(struct rt_trie_node) << bits);
+ sizeof(struct rt_trie_node *) << bits);
return tn;
}
OpenPOWER on IntegriCloud