[dahdi-commits] sruffell: linux/trunk r7536 - /linux/trunk/drivers/dahdi/wcte12xp/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Nov 9 12:11:09 CST 2009
Author: sruffell
Date: Mon Nov 9 12:11:06 2009
New Revision: 7536
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7536
Log:
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.
Modified:
linux/trunk/drivers/dahdi/wcte12xp/base.c
linux/trunk/drivers/dahdi/wcte12xp/wcte12xp.h
Modified: linux/trunk/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/base.c?view=diff&rev=7536&r1=7535&r2=7536
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/base.c Mon Nov 9 12:11:06 2009
@@ -1477,7 +1477,7 @@
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 @@
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 @@
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 @@
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);
}
Modified: linux/trunk/drivers/dahdi/wcte12xp/wcte12xp.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wcte12xp/wcte12xp.h?view=diff&rev=7536&r1=7535&r2=7536
==============================================================================
--- linux/trunk/drivers/dahdi/wcte12xp/wcte12xp.h (original)
+++ linux/trunk/drivers/dahdi/wcte12xp/wcte12xp.h Mon Nov 9 12:11:06 2009
@@ -139,4 +139,7 @@
struct work_struct timer_work;
};
+#define t1_info(t1, format, arg...) \
+ dev_info(&voicebus_get_pci_dev(t1->vb)->dev , format , ## arg)
+
#endif
More information about the dahdi-commits
mailing list