[Nut-upsdev] bcmxcp: stop whining (and log spamming)

Henning Brauer hb-nut at bsws.de
Wed Aug 23 11:11:33 UTC 2006


corrupted checksums happen all the time with the 6-port serial card, 
even when only using one port (and I don't give a shit about the other 
ports, if anybody has a one-port laying around...)
so stop whining already.

$OpenBSD$
--- drivers/bcmxcp_ser.c.orig	Wed Aug 23 11:15:54 2006
+++ drivers/bcmxcp_ser.c	Wed Aug 23 11:26:37 2006
@@ -168,8 +168,8 @@ int get_answer(unsigned char *data, unsi
 
 		/* now we have the whole answer from the ups, we can checksum it */
 		if (!checksum_test(my_buf)) {
-			ser_comm_fail("checksum error! ");
-		return -1;
+			upsdebugx(2, "checksum error!");
+			return -1;
 		}
 
 		memcpy(data+end_length, my_buf+4, length);




-- 
Henning Brauer, hb at bsws.de, henning at openbsd.org
BS Web Services, http://bsws.de
OpenBSD-based Webhosting, Mail Services, Managed Servers, ...



More information about the Nut-upsdev mailing list