[svn-commits] sruffell: tools/trunk r10215 - /tools/trunk/dahdi_maint.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 29 12:00:58 CDT 2011
Author: sruffell
Date: Thu Sep 29 12:00:55 2011
New Revision: 10215
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10215
Log:
dahdi_maint: Print 'unsupported' warning if framing errors is -1.
Warn the user if attempting to monitor a statistic that the particular
board driver does not appear to be collecting. The wcte12xp in r10212 in
now fills in -1 for any statistic it does not collect and other digital
cards can do the same.
Signed-off-by: Shaun Ruffell <sruffell at digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>
Modified:
tools/trunk/dahdi_maint.c
Modified: tools/trunk/dahdi_maint.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/dahdi_maint.c?view=diff&rev=10215&r1=10214&r2=10215
==============================================================================
--- tools/trunk/dahdi_maint.c (original)
+++ tools/trunk/dahdi_maint.c Thu Sep 29 12:00:55 2011
@@ -142,7 +142,7 @@
if (!(doloopback || iflag || gflag || rflag)) {
s.spanno = span;
res = ioctl(ctl, DAHDI_SPANSTAT, &s);
- if (res)
+ if (res || ((__u32)-1 == s.fecount))
printf("Error counters not supported by the driver"\
" for this span\n");
printf("Span %d:\n", span);
More information about the svn-commits
mailing list