Skip to content

Commit

Permalink
ipv4: fix debug info in tnode_new
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lin Ming authored and David S. Miller committed Jul 30, 2012
1 parent 1a0150a commit 4ea4bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4ea4bf7

Please sign in to comment.