summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wct4xxp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r--drivers/dahdi/wct4xxp/base.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c
index d4d066a..6dfc8cb 100644
--- a/drivers/dahdi/wct4xxp/base.c
+++ b/drivers/dahdi/wct4xxp/base.c
@@ -3218,11 +3218,13 @@ static void t4_check_alarms(struct t4 *wc, int span)
alarms |= DAHDI_ALARM_LMFA;
}
- /* Check to ensure the xmit line isn't shorted */
- if (unlikely(d & FRS1_XLS)) {
- dev_info(&wc->dev->dev,
- "Detected a possible hardware malfunction"\
- " this card may need servicing\n");
+ if (unlikely(debug)) {
+ /* Check to ensure the xmit line isn't shorted */
+ if (unlikely(d & FRS1_XLS)) {
+ dev_info(&wc->dev->dev,
+ "Detected a possible hardware malfunction"\
+ " this card may need servicing\n");
+ }
}
if (((!ts->span.alarms) && alarms) ||