summaryrefslogtreecommitdiff
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
commite3429f060d5d3443f1b65c654fad2f145b88a10b (patch)
tree966cc99bd12fa64b171ad18aa953088fae099060
parent856ec38e3accde2e39e1db7a0530bf04b5ec4f39 (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
-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 */