Commit 2ea93f28 authored by David S. Miller's avatar David S. Miller

Add missing KERN_foo printk specifiers to networking.

Based upon a patch from Denis Vlasenko.
parent 68775b6f
...@@ -583,7 +583,7 @@ static int rt_garbage_collect(void) ...@@ -583,7 +583,7 @@ static int rt_garbage_collect(void)
if (atomic_read(&ipv4_dst_ops.entries) < ip_rt_max_size) if (atomic_read(&ipv4_dst_ops.entries) < ip_rt_max_size)
goto out; goto out;
if (net_ratelimit()) if (net_ratelimit())
printk("dst cache overflow\n"); printk(KERN_WARNING "dst cache overflow\n");
return 1; return 1;
work_done: work_done:
...@@ -657,7 +657,7 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt, struct rtable **rp) ...@@ -657,7 +657,7 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt, struct rtable **rp)
} }
if (net_ratelimit()) if (net_ratelimit())
printk("Neighbour table overflow.\n"); printk(KERN_WARNING "Neighbour table overflow.\n");
rt_drop(rt); rt_drop(rt);
return -ENOBUFS; return -ENOBUFS;
} }
...@@ -667,8 +667,8 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt, struct rtable **rp) ...@@ -667,8 +667,8 @@ static int rt_intern_hash(unsigned hash, struct rtable *rt, struct rtable **rp)
#if RT_CACHE_DEBUG >= 2 #if RT_CACHE_DEBUG >= 2
if (rt->u.rt_next) { if (rt->u.rt_next) {
struct rtable *trt; struct rtable *trt;
printk("rt_cache @%02x: %u.%u.%u.%u", hash, printk(KERN_DEBUG "rt_cache @%02x: %u.%u.%u.%u", hash,
NIPQUAD(rt->rt_dst)); NIPQUAD(rt->rt_dst));
for (trt = rt->u.rt_next; trt; trt = trt->u.rt_next) for (trt = rt->u.rt_next; trt; trt = trt->u.rt_next)
printk(" . %u.%u.%u.%u", NIPQUAD(trt->rt_dst)); printk(" . %u.%u.%u.%u", NIPQUAD(trt->rt_dst));
printk("\n"); printk("\n");
...@@ -2487,7 +2487,7 @@ void __init ip_rt_init(void) ...@@ -2487,7 +2487,7 @@ void __init ip_rt_init(void)
if (!rt_hash_table) if (!rt_hash_table)
panic("Failed to allocate IP route cache hash table\n"); panic("Failed to allocate IP route cache hash table\n");
printk("IP: routing cache hash table of %u buckets, %ldKbytes\n", printk(KERN_INFO "IP: routing cache hash table of %u buckets, %ldKbytes\n",
rt_hash_mask, rt_hash_mask,
(long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024); (long) (rt_hash_mask * sizeof(struct rt_hash_bucket)) / 1024);
......
...@@ -1792,7 +1792,7 @@ void tcp_destroy_sock(struct sock *sk) ...@@ -1792,7 +1792,7 @@ void tcp_destroy_sock(struct sock *sk)
#ifdef TCP_DEBUG #ifdef TCP_DEBUG
if (sk->zapped) { if (sk->zapped) {
printk("TCP: double destroy sk=%p\n", sk); printk(KERN_DEBUG "TCP: double destroy sk=%p\n", sk);
sock_hold(sk); sock_hold(sk);
} }
sk->zapped = 1; sk->zapped = 1;
...@@ -2558,7 +2558,7 @@ void __init tcp_init(void) ...@@ -2558,7 +2558,7 @@ void __init tcp_init(void)
sysctl_tcp_rmem[2] = 2*43689; sysctl_tcp_rmem[2] = 2*43689;
} }
printk("TCP: Hash tables configured (established %d bind %d)\n", printk(KERN_INFO "TCP: Hash tables configured (established %d bind %d)\n",
tcp_ehash_size<<1, tcp_bhash_size); tcp_ehash_size<<1, tcp_bhash_size);
tcpdiag_init(); tcpdiag_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment