[Asterisk-cvs] zaptel fxotune.c,1.10,1.11

mattf at lists.digium.com mattf at lists.digium.com
Mon Jan 17 09:49:58 CST 2005


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv28288

Modified Files:
	fxotune.c 
Log Message:
Little changes, minor fixes


Index: fxotune.c
===================================================================
RCS file: /usr/cvsroot/zaptel/fxotune.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- fxotune.c	15 Jan 2005 07:09:46 -0000	1.10
+++ fxotune.c	17 Jan 2005 15:53:17 -0000	1.11
@@ -35,7 +35,7 @@
 static char *configfile = "/etc/fxotune.conf";
 
 static char *usage =
-"Usage: fxotest\n"
+"Usage: fxotune\n"
 "	-i <number> : Tests for FXO modules and sets echo coefficients, dialing <number> to clear dialtone\n"
 "	-s          : Sets the FXO modules echo coefficients on your system to the best settings\n";
 
@@ -271,7 +271,7 @@
 			}
 
 			if (ioctl(fd, WCTDM_SET_ECHOTUNE, &mycoefs)) {
-				fprintf(stdout, "echotune: %s\n", strerror(errno));
+				fprintf(stdout, "%s: %s\n", completezappath, strerror(errno));
 				return -1;
 			}
 		}
@@ -314,7 +314,7 @@
 			/* Do output to file */
 				int len = 0;
 				static char output[255] = "";
-				snprintf(output, sizeof(output), "%d=%d,%d,%d,%d,%d,%d,%d,%d,%d\n", i,
+				snprintf(output, sizeof(output), "%d=%d,%d,%d,%d,%d,%d,%d,%d,%d\n", i+1,
 						echo_trys[i].acim, echo_trys[i].coef1, echo_trys[i].coef2,
 						echo_trys[i].coef3, echo_trys[i].coef4, echo_trys[i].coef5,
 						echo_trys[i].coef6, echo_trys[i].coef7, echo_trys[i].coef8 );




More information about the svn-commits mailing list