aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorStephen Hemminger <[email protected]>2007-03-09 04:41:08 +0000
committerDavid S. Miller <[email protected]>2007-04-26 05:24:05 +0000
commita2a316fd068c455c609ecc155dcfaa7e208d29fe (patch)
tree9839e2c7e05e9d25241fa7c7b27fd06214120292 /net/core/utils.c
parent[NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution (diff)
downloadkernel-a2a316fd068c455c609ecc155dcfaa7e208d29fe.tar.gz
kernel-a2a316fd068c455c609ecc155dcfaa7e208d29fe.zip
[NET]: Replace CONFIG_NET_DEBUG with sysctl.
Covert network warning messages from a compile time to runtime choice. Removes kernel config option and replaces it with new /proc/sys/net/core/warnings. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/utils.c')
-rw-r--r--net/core/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/utils.c b/net/core/utils.c
index 07236c17fab9..34f08107b98e 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -32,6 +32,8 @@
int net_msg_cost = 5*HZ;
int net_msg_burst = 10;
+int net_msg_warn = 1;
+EXPORT_SYMBOL(net_msg_warn);
/*
* All net warning printk()s should be guarded by this function.