diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-01-17 15:53:17 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-01-17 15:53:17 +0000 |
commit | f014898414b69f42c56dde0c3757de0d9df84806 (patch) | |
tree | e8903e643627aa51ad14192f077da2bffc67cca2 /fxotune.c | |
parent | e449bb8a46e41239870662bbfe0d1012679138b0 (diff) |
Little changes, minor fixes
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@563 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'fxotune.c')
-rwxr-xr-x | fxotune.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ static char *zappath = "/dev/zap"; 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 @@ int main (int argc , char **argv) } 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 @@ int main (int argc , char **argv) /* 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 ); |