summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2011-09-29 17:00:55 +0000
committerShaun Ruffell <sruffell@digium.com>2011-09-29 17:00:55 +0000
commit2883bd316cf1470a7de65e3ad2247048cbd032ef (patch)
tree35e6169a22034f81dbe460dbfd6e33e59704a59a
parentb399d2d8e15d5c2b5440bb6febe5d3355aecff95 (diff)
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@digium.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10215 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--dahdi_maint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dahdi_maint.c b/dahdi_maint.c
index 829d4ea..9ee4133 100644
--- a/dahdi_maint.c
+++ b/dahdi_maint.c
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
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);