From 7205376d088d91b6680964e05c6ab20dbbc554f5 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Wed, 25 Jan 2012 22:02:08 +0000 Subject: xpp: FXO: improve ring debounce notice * Less jargon. * Fixes calculation: shows time passed rather than remaining time. * Closes xorcom #1398. Signed-off-by: Oron Peled Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10452 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/xpp/card_fxo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dahdi/xpp/card_fxo.c b/drivers/dahdi/xpp/card_fxo.c index 9f711c6..9634829 100644 --- a/drivers/dahdi/xpp/card_fxo.c +++ b/drivers/dahdi/xpp/card_fxo.c @@ -934,8 +934,9 @@ HANDLER_DEF(FXO, SIG_CHANGED) debounce = atomic_read(&priv->ring_debounce[i]); if (debounce) LINE_NOTICE(xpd, i, - "debounced false ring (only %d ticks)\n", - debounce); + "Ignored a false short ring " + "(lasted only %dms)\n", + ring_debounce - debounce); /* * Now set a new ring alarm. * It will be checked in handle_fxo_ring() -- cgit v1.2.3