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 <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10452 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Oron Peled 2012-01-25 22:02:08 +00:00 committed by Tzafrir Cohen
parent 7c8586d4f1
commit 3cf9003a26

View File

@ -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()