summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/dahdi/wcte12xp/base.c8
-rw-r--r--drivers/dahdi/wcte12xp/wcte12xp.h3
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