summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcb4xxp
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
commit66dcc6d00596804958eff8402dfc832af62ab037 (patch)
tree8b3fac664cb3bbcf89046af83943fe7b15ce46e8 /drivers/dahdi/wcb4xxp
parent76d241566e0f9b93eb5ce8d2e31214105ff85e08 (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')
-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