* [PATCH] ipv4: fix debug info in tnode_new
@ 2012-07-29 11:19 Lin Ming
2012-07-30 6:19 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Lin Ming @ 2012-07-29 11:19 UTC (permalink / raw)
To: David Miller; +Cc: netdev
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>
---
net/ipv4/fib_trie.c | 2 +-
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;
}
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: fix debug info in tnode_new
2012-07-29 11:19 [PATCH] ipv4: fix debug info in tnode_new Lin Ming
@ 2012-07-30 6:19 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-07-30 6:19 UTC (permalink / raw)
To: mlin; +Cc: netdev
From: Lin Ming <mlin@ss.pku.edu.cn>
Date: Sun, 29 Jul 2012 19:19:55 +0800
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-30 6:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 11:19 [PATCH] ipv4: fix debug info in tnode_new Lin Ming
2012-07-30 6:19 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.