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.astersk.org/svn/dahdi/tools/trunk@10215 17933a7a-c749-41c5-a318-cba88f637d49
This commit is contained in:
Shaun Ruffell 2011-09-29 17:00:55 +00:00
parent 250bc06238
commit cbb0252a6a
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ int main(int argc, char *argv[])
if (!(doloopback || iflag || gflag || rflag)) { if (!(doloopback || iflag || gflag || rflag)) {
s.spanno = span; s.spanno = span;
res = ioctl(ctl, DAHDI_SPANSTAT, &s); res = ioctl(ctl, DAHDI_SPANSTAT, &s);
if (res) if (res || ((__u32)-1 == s.fecount))
printf("Error counters not supported by the driver"\ printf("Error counters not supported by the driver"\
" for this span\n"); " for this span\n");
printf("Span %d:\n", span); printf("Span %d:\n", span);