The size of structures is a debug thing, not something that needs to
be part of a /proc api.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>


--- a/net/ipv4/fib_trie.c       2008-01-11 22:29:20.000000000 -0800
+++ b/net/ipv4/fib_trie.c       2008-01-11 22:30:28.000000000 -0800
@@ -1962,8 +1962,11 @@ struct fib_table *fib_hash_init(u32 id)
        t = (struct trie *) tb->tb_data;
        memset(t, 0, sizeof(*t));
 
-       if (id == RT_TABLE_LOCAL)
+       if (id == RT_TABLE_LOCAL) {
                printk(KERN_INFO "IPv4 FIB: Using LC-trie version %s\n", 
VERSION);
+               pr_debug("Basic info: size of leaf: %Zd bytes, size of tnode: 
%Zd bytes.\n",
+                        sizeof(struct leaf), sizeof(struct tnode));
+       }
 
        return tb;
 }
@@ -2159,9 +2162,6 @@ static int fib_triestat_seq_show(struct 
        if (!stat)
                return -ENOMEM;
 
-       seq_printf(seq, "Basic info: size of leaf: %Zd bytes, size of tnode: 
%Zd bytes.\n",
-                  sizeof(struct leaf), sizeof(struct tnode));
-
        if (trie_local) {
                seq_printf(seq, "Local:\n");
                trie_collect_stats(trie_local, stat);

-- 
Stephen Hemminger <[EMAIL PROTECTED]>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to