summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcb4xxp/base.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-07-02 19:42:25 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-07-02 19:42:25 +0000
commitb43248679cdcb3b32db1d69917bfe068e9a2632c (patch)
tree8b3fac664cb3bbcf89046af83943fe7b15ce46e8 /drivers/dahdi/wcb4xxp/base.c
parentf14181e6503f95692697f2f89ff53baa8c9e976f (diff)
wcb4xxp: Adjust debug filter code to number of ports.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6814 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcb4xxp/base.c')
-rw-r--r--drivers/dahdi/wcb4xxp/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c
index cd82f2f..e95a573 100644
--- a/drivers/dahdi/wcb4xxp/base.c
+++ b/drivers/dahdi/wcb4xxp/base.c
@@ -81,10 +81,10 @@
#define DBG_HDLC (debug & DEBUG_HDLC)
#define DBG_ALARM (debug & DEBUG_ALARM)
-#define DBG_SPANFILTER ((1 << bspan->port) & spanfilter)
+#define DBG_SPANFILTER (BIT(bspan->port) & spanfilter)
static int debug = 0;
-static int spanfilter = 15;
+static int spanfilter = 0xFF; /* Bitmap for ports 1-8 */
#ifdef LOOPBACK_SUPPORTED
static int loopback = 0;
#endif