summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfxotune.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fxotune.c b/fxotune.c
index d9dd442..04f89ed 100755
--- a/fxotune.c
+++ b/fxotune.c
@@ -380,7 +380,7 @@ static int acim_tune(int whichzap, char *dialstr)
dop.op = ZT_DIAL_OP_REPLACE;
dop.dialstr[0] = 'T';
strncpy(dop.dialstr + 1, dialstr, sizeof(dop.dialstr) - 1);
- printf("Dialing...\n");
+ printf(".");
if (ioctl(whichzap, ZT_DIAL, &dop)) {
fprintf(stderr, "Unable to dial!\n");
return -1;
@@ -526,12 +526,16 @@ set:
fd = open(zapdev, O_RDWR);
if (fd < 0) {
- if (debug)
- fprintf(stdout, "%s absent: %s\n", zapdev, strerror(errno));
+ fprintf(stdout, "%s absent: %s\n", zapdev, strerror(errno));
continue;
}
+ printf("Tuning module %d", i + 1);
res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */
+ if (!res)
+ printf("Done!\n");
+ else
+ printf("Failure!\n");
close(fd);
if (res > -1) {