rpms/rt3070-kmod/F-10 rt3070-suppress-flood.patch, NONE, 1.1 rt3070-kmod.spec, 1.17, 1.18

Orcan Ogetbil oget at rpmfusion.org
Sat Aug 22 22:02:49 CEST 2009


Author: oget

Update of /cvs/free/rpms/rt3070-kmod/F-10
In directory se02.es.rpmfusion.net:/tmp/cvs-serv18891

Modified Files:
	rt3070-kmod.spec 
Added Files:
	rt3070-suppress-flood.patch 
Log Message:
* Sat Aug 22 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.1.1.0-2
- Suppress a flood of system log messages


rt3070-suppress-flood.patch:

--- NEW FILE rt3070-suppress-flood.patch ---
diff -rupN 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/common/cmm_asic.c 2009_0520_RT3070_Linux_STA_v2.1.1.0/common/cmm_asic.c
--- 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/common/cmm_asic.c	2009-05-20 21:59:31.000000000 -0400
+++ 2009_0520_RT3070_Linux_STA_v2.1.1.0/common/cmm_asic.c	2009-08-22 15:57:28.000000000 -0400
@@ -694,7 +694,7 @@ VOID AsicSwitchChannel(
 								TxPwer = (7+TxPwer);
 								TxPwer = (TxPwer > 0xF) ? (0xF) : (TxPwer);
 								R3 |= (TxPwer << 10);
-								DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: TxPwer=%d \n", TxPwer));
+								// comment out as it causes flood // DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: TxPwer=%d \n", TxPwer));
 							}
 							else
 							{
@@ -708,7 +708,7 @@ VOID AsicSwitchChannel(
 								TxPwer2 = (7+TxPwer2);
 								TxPwer2 = (TxPwer2 > 0xF) ? (0xF) : (TxPwer2);
 								R4 |= (TxPwer2 << 7);
-								DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: TxPwer2=%d \n", TxPwer2));
+								// comment out as it causes flood // DBGPRINT(RT_DEBUG_ERROR, ("AsicSwitchChannel: TxPwer2=%d \n", TxPwer2));
 							}
 							else
 							{
diff -rupN 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/os/linux/rt_ate.c 2009_0520_RT3070_Linux_STA_v2.1.1.0/os/linux/rt_ate.c
--- 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/os/linux/rt_ate.c	2009-05-20 22:00:29.000000000 -0400
+++ 2009_0520_RT3070_Linux_STA_v2.1.1.0/os/linux/rt_ate.c	2009-08-22 15:57:28.000000000 -0400
@@ -3166,7 +3166,7 @@ VOID ATEAsicSwitchChannel(
 								TxPwer = (7+TxPwer);
 								TxPwer = (TxPwer > 0xF) ? (0xF) : (TxPwer);
 								R3 |= (TxPwer << 10);
-								ATEDBGPRINT(RT_DEBUG_TRACE, ("ATEAsicSwitchChannel: TxPwer=%d \n", TxPwer));
+								// comment out as it causes flood // ATEDBGPRINT(RT_DEBUG_TRACE, ("ATEAsicSwitchChannel: TxPwer=%d \n", TxPwer));
 							}
 							else
 							{
@@ -3180,7 +3180,7 @@ VOID ATEAsicSwitchChannel(
 								TxPwer2 = (7+TxPwer2);
 								TxPwer2 = (TxPwer2 > 0xF) ? (0xF) : (TxPwer2);
 								R4 |= (TxPwer2 << 7);
-								ATEDBGPRINT(RT_DEBUG_TRACE, ("ATEAsicSwitchChannel: TxPwer2=%d \n", TxPwer2));
+								// comment out as it causes flood // ATEDBGPRINT(RT_DEBUG_TRACE, ("ATEAsicSwitchChannel: TxPwer2=%d \n", TxPwer2));
 							}
 							else
 							{
diff -rupN 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/os/linux/sta_ioctl.c 2009_0520_RT3070_Linux_STA_v2.1.1.0/os/linux/sta_ioctl.c
--- 2009_0520_RT3070_Linux_STA_v2.1.1.0.old/os/linux/sta_ioctl.c	2009-08-22 15:56:34.000000000 -0400
+++ 2009_0520_RT3070_Linux_STA_v2.1.1.0/os/linux/sta_ioctl.c	2009-08-22 15:57:28.000000000 -0400
@@ -1541,7 +1541,7 @@ int rt_ioctl_giwscan(struct net_device *
 
 	data->length = current_ev - extra;
     pAdapter->StaCfg.bScanReqIsFromWebUI = FALSE;
-	DBGPRINT(RT_DEBUG_ERROR ,("===>rt_ioctl_giwscan. %d(%d) BSS returned, data->length = %d\n",i , pAdapter->ScanTab.BssNr, data->length));
+    // comment out as it causes flood in system messages. // DBGPRINT(RT_DEBUG_ERROR ,("===>rt_ioctl_giwscan. %d(%d) BSS returned, data->length = %d\n",i , pAdapter->ScanTab.BssNr, data->length));
 	return 0;
 }
 #endif


Index: rt3070-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/rt3070-kmod/F-10/rt3070-kmod.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- rt3070-kmod.spec	22 Aug 2009 17:19:51 -0000	1.17
+++ rt3070-kmod.spec	22 Aug 2009 20:02:49 -0000	1.18
@@ -3,11 +3,11 @@
 # "buildforkernels newest" macro for just that build; immediately after
 # queuing that build enable the macro again for subsequent builds; that way
 # a new akmod package will only get build when a new one is actually needed
-%define buildforkernels newest
+#define buildforkernels newest
 
 Name:		rt3070-kmod
 Version:	2.1.1.0
-Release:	1%{?dist}.8
+Release:	2%{?dist}
 Summary:	Kernel module for wireless devices with Ralink's rt307x chipsets
 
 Group:		System Environment/Kernel
@@ -21,6 +21,8 @@
 Patch3:		rt3070-NetworkManager-support.patch
 Patch4:		rt3070-strip-tftpboot-copy.patch
 Patch5:		rt3070-2.6.29-compile.patch
+Patch6:		rt3070-suppress-flood.patch
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	%{_bindir}/kmodtool
@@ -51,6 +53,7 @@
 %patch2 -p1 -b .rpmbuild
 %patch3 -p1 -b .NetworkManager
 %patch4 -p1 -b .tftpboot
+%patch6 -p1 -b .messageflood
 popd
 
 # Fix permissions
@@ -93,6 +96,9 @@
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Sat Aug 22 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.1.1.0-2
+- Suppress a flood of system log messages
+
 * Sat Aug 22 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.1.1.0-1.8
 - rebuild for new kernels
 



More information about the rpmfusion-commits mailing list