ipv4: fix debug info in tnode_new
authorLin Ming <mlin@ss.pku.edu.cn>
Sun, 29 Jul 2012 01:19:55 +0000 (01:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:30 +0000 (23:18 -0700)
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>
net/ipv4/fib_trie.c

index 18cbc15b20d5cc3dfc10c52ff344fa60a7ed3560..2a6fdc2708c6a25d974343bb3771bab893630a83 100644 (file)
@@ -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;
 }