speedtch usbatm.c,1.4,1.5
Duncan Sands
duncan at infradead.org
Mon Feb 7 11:00:12 EST 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv15074
Modified Files:
usbatm.c
Log Message:
Fix missing newlines in /proc. Patch by Roman Kagan.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- usbatm.c 1 Feb 2005 23:20:49 -0000 1.4
+++ usbatm.c 7 Feb 2005 16:00:08 -0000 1.5
@@ -807,22 +807,16 @@
atomic_read(&atm_dev->stats.aal5.rx_err),
atomic_read(&atm_dev->stats.aal5.rx_drop));
- if (!left--) {
+ if (!left--)
switch (atm_dev->signal) {
case ATM_PHY_SIG_FOUND:
- sprintf(page, "Line up");
- break;
+ return sprintf(page, "Line up\n");
case ATM_PHY_SIG_LOST:
- sprintf(page, "Line down");
- break;
+ return sprintf(page, "Line down\n");
default:
- sprintf(page, "Line state unknown");
- break;
+ return sprintf(page, "Line state unknown\n");
}
- return strlen(page);
- }
-
return 0;
}
More information about the Usbatm-commits
mailing list