summaryrefslogtreecommitdiff
path: root/drivers/dahdi
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-04-16 19:08:53 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-04-16 19:08:53 +0000
commitc5716045147182492567cfd84f39f2082a6022a4 (patch)
tree966cc99bd12fa64b171ad18aa953088fae099060 /drivers/dahdi
parentf9c68b50d86b85c3eb940647785f1ae35e3e47c2 (diff)
xpp fxs: Notify the user just one about wrong VMWI config
From xpp rev. 6974. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6386 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r--drivers/dahdi/xpp/card_fxs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/card_fxs.c b/drivers/dahdi/xpp/card_fxs.c
index 3673d8b..56fe89e 100644
--- a/drivers/dahdi/xpp/card_fxs.c
+++ b/drivers/dahdi/xpp/card_fxs.c
@@ -872,7 +872,11 @@ static int FXS_card_ioctl(xpd_t *xpd, int pos, unsigned int cmd, unsigned long a
if (get_user(val, (int __user *)arg))
return -EFAULT;
if(!vmwi_ioctl) {
- LINE_NOTICE(xpd, pos, "Got DAHDI_VMWI notification but vmwi_ioctl parameter is off. Ignoring.\n");
+ static bool notified = 0;
+
+ if(!notified++)
+ LINE_NOTICE(xpd, pos,
+ "Got DAHDI_VMWI notification but vmwi_ioctl parameter is off. Ignoring.\n");
return 0;
}
/* Digital inputs/outputs don't have VM leds */