From 175c10988e98321542ec6e57d67d3ca8d859e688 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 11 Aug 2005 13:33:35 +0000 Subject: Minor cosmetic updates to fxotune git-svn-id: http://svn.digium.com/svn/zaptel/trunk@730 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- fxotune.c | 10 +++++++--- 1 file 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) { -- cgit v1.2.3