diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-11-09 18:11:06 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-11-09 18:11:06 +0000 |
commit | 88e4e5a674a4167530c76d96a9631be4fa6f728c (patch) | |
tree | a947324f41107553da256e675c98f43a796cf5d8 /drivers | |
parent | 22fd577be96b43b1e20d34359955e979bd8958dc (diff) |
wcte12xp: use the dev_xxx macro for the debounce messages.
We want to know which device is reporting the debounce when there are more than
one card in the system.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7536 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 8 | ||||
-rw-r--r-- | drivers/dahdi/wcte12xp/wcte12xp.h | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 7bf392d..70f6fe3 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -1477,7 +1477,7 @@ static inline void t1_check_alarms(struct t1 *wc) else { if (unlikely(debug && !wc->alarmcount)) { /* starting to debounce LOF/LFA */ - module_printk("LOF/LFA detected but " + t1_info(wc, "LOF/LFA detected but " "debouncing for %d ms\n", alarmdebounce); } @@ -1492,7 +1492,7 @@ static inline void t1_check_alarms(struct t1 *wc) else { if (unlikely(debug && !wc->losalarmcount)) { /* starting to debounce LOS */ - module_printk("LOS detected but debouncing " + t1_info(wc, "LOS detected but debouncing " "for %d ms\n", losalarmdebounce); } wc->losalarmcount++; @@ -1506,7 +1506,7 @@ static inline void t1_check_alarms(struct t1 *wc) else { if (unlikely(debug && !wc->aisalarmcount)) { /* starting to debounce AIS */ - module_printk("AIS detected but debouncing " + t1_info(wc, "AIS detected but debouncing " "for %d ms\n", aisalarmdebounce); } wc->aisalarmcount++; @@ -1544,7 +1544,7 @@ static inline void t1_check_alarms(struct t1 *wc) else { if (unlikely(debug && !wc->yelalarmcount)) { /* starting to debounce AIS */ - module_printk("yelllow (RAI) detected but " + t1_info(wc, "yelllow (RAI) detected but " "debouncing for %d ms\n", yelalarmdebounce); } diff --git a/drivers/dahdi/wcte12xp/wcte12xp.h b/drivers/dahdi/wcte12xp/wcte12xp.h index d6c5d7e..03d10a6 100644 --- a/drivers/dahdi/wcte12xp/wcte12xp.h +++ b/drivers/dahdi/wcte12xp/wcte12xp.h @@ -139,4 +139,7 @@ struct t1 { struct work_struct timer_work; }; +#define t1_info(t1, format, arg...) \ + dev_info(&voicebus_get_pci_dev(t1->vb)->dev , format , ## arg) + #endif |