lkml.org 
[lkml]   [2002]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] KERN_INFO: IPv4 IP/TCP hash table size printks
Date
Primary purpose of this patch is to make KERN_WARNING and
KERN_INFO log levels closer to their original meaning.
Today they are quite far from what was intended.
Just look what kernel writes at the WARNING level
each time you boot your box!

This patch is for IPv4 IP/TCP hash table size printks
--
vda

diff --recursive -u linux-2.4.13-orig/net/ipv4/route.c linux-2.4.13-new/net/ipv4/route.c
--- linux-2.4.13-orig/net/ipv4/route.c Wed Oct 17 19:16:39 2001
+++ linux-2.4.13-new/net/ipv4/route.c Thu Nov 8 23:42:11 2001
@@ -2494,9 +2494,10 @@
if (!rt_hash_table)
panic("Failed to allocate IP route cache hash table\n");

- printk("IP: routing cache hash table of %u buckets, %ldKbytes\n",
- rt_hash_mask,
- (long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024);
+ printk(KERN_INFO "IP: routing cache hash table of"
+ " %u buckets, %ldKbytes\n",
+ rt_hash_mask,
+ (long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024);

for (rt_hash_log = 0; (1 << rt_hash_log) != rt_hash_mask; rt_hash_log++)
/* NOTHING */;
diff --recursive -u linux-2.4.13-orig/net/ipv4/tcp.c linux-2.4.13-new/net/ipv4/tcp.c
--- linux-2.4.13-orig/net/ipv4/tcp.c Thu Oct 11 04:42:47 2001
+++ linux-2.4.13-new/net/ipv4/tcp.c Thu Nov 8 23:42:11 2001
@@ -2553,6 +2553,7 @@
sysctl_tcp_rmem[2] = 2*43689;
}

- printk("TCP: Hash tables configured (established %d bind %d)\n",
- tcp_ehash_size<<1, tcp_bhash_size);
+ printk(KERN_INFO "TCP: hash tables configured"
+ " (established %d bind %d)\n",
+ tcp_ehash_size<<1, tcp_bhash_size);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.042 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site