From 641de465f19b1f26d24376e29df103f89ef66d1f Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 15 Sep 2008 20:49:31 +0000 Subject: Edit some comments and error strings. Issue: DAHDI-13 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4909 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 2 +- drivers/dahdi/wctdm.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 260979d..a26aee9 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -6259,7 +6259,7 @@ static void __dahdi_hooksig_pvt(struct dahdi_chan *chan, enum dahdi_rxsig rxsig) } break; case DAHDI_SIG_FXSKS: /* FXS Kewlstart */ - /* ignore a bit poopy if loop not closed and stable */ + /* ignore a bit error if loop not closed and stable */ if (chan->txstate != DAHDI_TXSTATE_OFFHOOK) break; #ifdef FXSFLASH if (rxsig == DAHDI_RXSIG_ONHOOK) { diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index eff29fb..5d4b05c 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -747,7 +747,7 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) unsigned char res; #endif signed char b; - int poopy = 0; + int errors = 0; struct fxo *fxo = &wc->mod[card].fxo; /* Try to track issues that plague slot one FXO's */ @@ -755,8 +755,8 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) if ((b & 0x2) || !(b & 0x8)) { /* Not good -- don't look at anything else */ if (debug) - printk(KERN_DEBUG "Poopy (%02x) on card %d!\n", b, card + 1); - poopy++; + printk(KERN_DEBUG "Error (%02x) on card %d!\n", b, card + 1); + errors++; } b &= 0x9b; if (fxo->offhook) { @@ -766,7 +766,7 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) if (b != 0x8) wctdm_setreg(wc, card, 5, 0x8); } - if (poopy) + if (errors) return; if (!fxo->offhook) { if (fwringdetect) { -- cgit v1.2.3