Skip to contentSkip to conversation

ipv4: fix debug info in tnode_new

PATCH Applied Lin Ming 2 participants 2 messages Jul 29, 2012 – Jul 30, 2012

Subsystems (3)
lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 1/1 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.

---
 net/ipv4/fib_trie.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/fib_trie.c +1 -1
index 18cbc15..2a6fdc2 100644
@@ -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;
 }
 
Signature · 1 line
1.7.2.5