diff options
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 ); |