speedtch speedtch.c,1.67,1.68
Duncan Sands
duncan at infradead.org
Thu Nov 3 12:40:09 EST 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv29189
Modified Files:
speedtch.c
Log Message:
Reduce log spam when polling.
Index: speedtch.c
===================================================================
RCS file: /home/cvs/speedtch/speedtch.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- speedtch.c 30 Sep 2005 08:52:03 -0000 1.67
+++ speedtch.c 3 Nov 2005 17:40:05 -0000 1.68
@@ -449,7 +449,9 @@
int down_speed, up_speed, ret;
unsigned char status;
+#ifdef VERBOSE_DEBUG
atm_dbg(usbatm, "%s entered\n", __func__);
+#endif
ret = speedtch_read_status(instance);
if (ret < 0) {
@@ -462,9 +464,9 @@
status = buf[OFFSET_7];
- atm_dbg(usbatm, "%s: line state %02x\n", __func__, status);
-
if ((status != instance->last_status) || !status) {
+ atm_dbg(usbatm, "%s: line state 0x%02x\n", __func__, status);
+
switch (status) {
case 0:
atm_dev->signal = ATM_PHY_SIG_LOST;
More information about the Usbatm-commits
mailing list