Re: Obsolete messages ...

From: James Morris (jmorris@intercode.com.au)
Date: Thu Mar 27 2003 - 10:51:18 EST


On Thu, 27 Mar 2003, David S. Miller wrote:

> Now, I'll all for netratelimit()'ing the networking ones.

What about warning just once like the SOCK_PACKET one?

- James

-- 
James Morris
<jmorris@intercode.com.au>

--- linux-2.5.66.orig/net/core/sock.c Tue Mar 25 23:09:41 2003 +++ linux-2.5.66.w2/net/core/sock.c Fri Mar 28 02:47:31 2003 @@ -155,8 +155,13 @@ static void sock_warn_obsolete_bsdism(const char *name) { - printk(KERN_WARNING "process `%s' is using obsolete " - "%s SO_BSDCOMPAT\n", current->comm, name); + static int warned; + + if (!warned) { + warned = 1; + printk(KERN_WARNING "process `%s' is using obsolete " + "%s SO_BSDCOMPAT\n", current->comm, name); + } } /*

- 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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:28 EST