summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-11 13:33:35 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-11 13:33:35 +0000
commit175c10988e98321542ec6e57d67d3ca8d859e688 (patch)
tree42dfc3788cf52ad1fc4ea9c0b39e96defdcea5b1
parenta54222830764f049d8897c48ebefd3358c5cd7f4 (diff)
Minor cosmetic updates to fxotune
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@730 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-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) {