summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerreicks@digium.com>2010-03-09 02:50:33 +0000
committerRuss Meyerriecks <rmeyerreicks@digium.com>2010-03-09 02:50:33 +0000
commit8f7a3674e678b5dd6c8460c67806589b054ee40e (patch)
treed8c0283e4e7c21a8bfdd0ced3e957957d1084bb3
parent8f12bafb59716465938026ae90d83b9ad77b831f (diff)
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
-rw-r--r--dahdi_maint.c18
1 files 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");
}
}