summaryrefslogtreecommitdiffstats
path: root/net/ipv4
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/ipv4
parent1a0150a93c496986297fc08304ac564213c08942 (diff)
downloadlinux-4ea4bf7ebcbacee2f4736d261efb0693e87a34c9.tar.gz
linux-4ea4bf7ebcbacee2f4736d261efb0693e87a34c9.tar.bz2
linux-4ea4bf7ebcbacee2f4736d261efb0693e87a34c9.zip
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/ipv4')
-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 18cbc15b20d5..2a6fdc2708c6 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;
}