rpms/kernel/devel kernel.spec, 1.1161, 1.1162 linux-2.6-silence-noise.patch, 1.21, 1.22

Dave Jones davej at fedoraproject.org
Thu Dec 11 21:57:26 UTC 2008


Author: davej

Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7922

Modified Files:
	kernel.spec linux-2.6-silence-noise.patch 
Log Message:
Remove noisy message from can network protocol.


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.1161
retrieving revision 1.1162
diff -u -r1.1161 -r1.1162
--- kernel.spec	11 Dec 2008 19:15:30 -0000	1.1161
+++ kernel.spec	11 Dec 2008 21:56:56 -0000	1.1162
@@ -1772,6 +1772,9 @@
 %kernel_variant_files -k vmlinux %{with_kdump} kdump
 
 %changelog
+* Thu Dec 11 2008 Dave Jones <davej at redhat.com>
+- Remove noisy message from can network protocol.
+
 * Thu Dec 11 2008 Hans de Goede <hdegoede at redhat.com>
 - Add a patch updating the gspca driver to the latest "git" (mercurial
   actually) adding support for ov534 based cams, fixing support for

linux-2.6-silence-noise.patch:

Index: linux-2.6-silence-noise.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-silence-noise.patch,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- linux-2.6-silence-noise.patch	25 Sep 2008 20:36:21 -0000	1.21
+++ linux-2.6-silence-noise.patch	11 Dec 2008 21:56:56 -0000	1.22
@@ -41,3 +41,26 @@
 -- 
 1.6.0.1
 
+Socket fuzzers like sfuzz will trigger this printk a lot, even though it's
+ratelimited. It isn't particularly useful, so just remove it.
+
+Signed-off-by: Dave Jones <davej at redhat.com>
+
+--- linux-2.6.27.noarch/net/can/af_can.c~	2008-12-11 16:53:48.000000000 -0500
++++ linux-2.6.27.noarch/net/can/af_can.c	2008-12-11 16:54:42.000000000 -0500
+@@ -134,13 +134,9 @@ static int can_create(struct net *net, s
+ 		err = request_module("can-proto-%d", protocol);
+ 
+ 		/*
+-		 * In case of error we only print a message but don't
+-		 * return the error code immediately.  Below we will
+-		 * return -EPROTONOSUPPORT
++		 * In case of error we don't return the error code immediately.
++		 * Below we will return -EPROTONOSUPPORT
+ 		 */
+-		if (err && printk_ratelimit())
+-			printk(KERN_ERR "can: request_module "
+-			       "(can-proto-%d) failed.\n", protocol);
+ 	}
+ #endif
+ 




More information about the fedora-extras-commits mailing list