rpms/nut/FC-5 nut-2.0.2-warning.patch,NONE,1.1 nut.spec,1.32,1.33

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Apr 25 10:12:56 UTC 2006


Author: than

Update of /cvs/dist/rpms/nut/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv2900

Modified Files:
	nut.spec 
Added Files:
	nut-2.0.2-warning.patch 
Log Message:
- don't show debug messages 


nut-2.0.2-warning.patch:
 hidups.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

--- NEW FILE nut-2.0.2-warning.patch ---
--- nut-2.0.2/drivers/hidups.c.orig	2005-10-04 11:00:48.000000000 +0200
+++ nut-2.0.2/drivers/hidups.c	2005-10-04 11:37:57.000000000 +0200
@@ -108,15 +108,16 @@
 
 	/* XXX: deal with bogosity by throwing it out */
 	if (ev->value > 3000000) {
-		upslogx(LOG_INFO, "Ignoring bogus event 0x%x (%d)",
-			ev->hid, ev->value);
+		/* upslogx(LOG_INFO, "Ignoring bogus event 0x%x (%d)",
+			ev->hid, ev->value); */
 		return;
 	}
 
 	/* x86 page == ups-specific, ignore these for now */
 	if ((ev->hid & 0x860000) == 0x860000) {
-		upslogx(LOG_INFO, "Ignoring x86 page event 0x%x (%d)",
-			ev->hid, ev->value);
+
+		/* upslogx(LOG_INFO, "Ignoring x86 page event 0x%x (%d)",
+			ev->hid, ev->value); */
 		return;
 	}
 
@@ -176,8 +177,9 @@
 			break;
 
 		default:
-			upslogx(LOG_INFO, "Unhandled event: 0x%x (%d)",
-				ev->hid, ev->value);
+			/* upslogx(LOG_INFO, "Unhandled event: 0x%x (%d)",
+				ev->hid, ev->value); */
+			break;
 	}
 
 	/* deal with any status changes */


Index: nut.spec
===================================================================
RCS file: /cvs/dist/rpms/nut/FC-5/nut.spec,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- nut.spec	25 Apr 2006 09:27:45 -0000	1.32
+++ nut.spec	25 Apr 2006 10:12:52 -0000	1.33
@@ -24,6 +24,7 @@
 Patch1: nut-0.45.0-conffiles.patch
 Patch2: nut-0.45.4-conf.patch
 Patch3: nut-2.0.1-bad.patch
+Patch5: nut-2.0.2-warning.patch
 
 Requires: nut-client
 
@@ -89,6 +90,7 @@
 %patch1 -p1 -b .conf
 %patch2 -p1 -b .conf1
 %patch3 -p1 -b .bad
+%patch5 -p1 -b .warning
 
 iconv -f iso-8859-1 -t utf-8 < man/newhidups.8 > man/newhidups.8_
 mv man/newhidups.8_ man/newhidups.8




More information about the fedora-cvs-commits mailing list