From 8f7a3674e678b5dd6c8460c67806589b054ee40e Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Tue, 9 Mar 2010 02:50:33 +0000 Subject: dahdi_maint: Minor fix for generic error reporting kpflemming suggested modifying the error messages due to the fact that some spans may not have a physical card associated with it. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8299 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi_maint.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/dahdi_maint.c b/dahdi_maint.c index 90ae659..40220a5 100644 --- a/dahdi_maint.c +++ b/dahdi_maint.c @@ -140,7 +140,8 @@ int main(int argc, char *argv[]) s.spanno = span; res = ioctl(ctl, DAHDI_SPANSTAT, &s); if (res) - printf("Error counters not supported on this card\n"); + printf("Error counters not supported by the driver"\ + " for this span\n"); printf("Span %d:\n", span); printf(">FEC : %d:\n", s.fecount); printf(">CEC : %d:\n", s.crc4count); @@ -174,8 +175,8 @@ int main(int argc, char *argv[]) res = ioctl(ctl, DAHDI_MAINT, &m); if (res) - printf("This type of looping not"\ - "supported on this card\n"); + printf("This type of looping not supported by the"\ + "driver for this span\n"); } if (iflag) { @@ -202,7 +203,8 @@ int main(int argc, char *argv[]) } res = ioctl(ctl, DAHDI_MAINT, &m); if (res) - printf("Network line loop not supported on this card\n"); + printf("This type of looping is not supported by the"\ + " driver for this span\n"); } if (gflag) { @@ -211,8 +213,8 @@ int main(int argc, char *argv[]) m.command = DAHDI_MAINT_PRBS; res = ioctl(ctl, DAHDI_MAINT, &m); if (res) { - printf("This type of error injection is not"\ - " supported on this card\n"); + printf("This type of error injection is not supported"\ + " by the driver for this span\n"); } } @@ -221,8 +223,8 @@ int main(int argc, char *argv[]) m.command = DAHDI_RESET_COUNTERS; res = ioctl(ctl, DAHDI_MAINT, &m); if (res) { - printf("Resetting error counters"\ - " is not supported on this card\n"); + printf("Resetting error counters is not supported by"\ + " the driver for this span\n"); } } -- cgit v1.2.3