lkml.org 
[lkml]   [2003]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Obsolete messages ...
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.026 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site