[Pkg-voip-commits] [dahdi-tools] 49/285: dahdi_maint: Print 'unsupported' warning if framing errors is -1.
tzafrir at debian.org
tzafrir at debian.org
Thu Jul 7 19:18:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository dahdi-tools.
commit cbb0252a6a29d9cf69c3b41c13d68160662c45d9
Author: Shaun Ruffell <sruffell at digium.com>
Date: Thu Sep 29 17:00:55 2011 +0000
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>
git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10215 17933a7a-c749-41c5-a318-cba88f637d49
---
dahdi_maint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git
More information about the Pkg-voip-commits
mailing list