[svn-commits] rmeyerriecks: tools/trunk r8299 - /tools/trunk/dahdi_maint.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 8 20:50:37 CST 2010


Author: rmeyerriecks
Date: Mon Mar  8 20:50:33 2010
New Revision: 8299

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=8299
Log:
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.

Modified:
    tools/trunk/dahdi_maint.c

Modified: tools/trunk/dahdi_maint.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/dahdi_maint.c?view=diff&rev=8299&r1=8298&r2=8299
==============================================================================
--- tools/trunk/dahdi_maint.c (original)
+++ tools/trunk/dahdi_maint.c Mon Mar  8 20:50:33 2010
@@ -140,7 +140,8 @@
 		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 @@
 
 		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 @@
 		}
 		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 @@
 		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 @@
 		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");
 		}
 	}
 




More information about the svn-commits mailing list