summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_dahdi.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-04 14:02:10 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-08-04 14:02:10 +0000
commita5f019cb266dc0f459eef0aeda09e2b6a448b42d (patch)
tree9b6330cf9bce3cfe200477e0fe6ee197bea100a2 /drivers/dahdi/xpp/xpp_dahdi.c
parent6b5d055585e3cad80428a468e67665f6ef7cdb50 (diff)
Firmware update: 5959 (FTMF and BRI ID)
* Fix some cases of double digits. * Fix some rare cases of a BRI unit providing incorrect directionality. * Extra debugging code in card_fxs.c to trace future DTMF issues. * Properly note Zaptel (as opposed to DAHDI) ioctls. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4695 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r--drivers/dahdi/xpp/xpp_dahdi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c
index a5879eb..6d2d241 100644
--- a/drivers/dahdi/xpp/xpp_dahdi.c
+++ b/drivers/dahdi/xpp/xpp_dahdi.c
@@ -740,7 +740,11 @@ int xpp_close(struct dahdi_chan *chan)
void report_bad_ioctl(const char *msg, xpd_t *xpd, int pos, unsigned int cmd)
{
- XPD_NOTICE(xpd, "%s: Bad ioctl\n", msg);
+ char *extra_msg = "";
+
+ if(_IOC_TYPE(cmd) == 'J')
+ extra_msg = " (for old ZAPTEL)";
+ XPD_NOTICE(xpd, "%s: Bad ioctl%s\n", msg, extra_msg);
XPD_NOTICE(xpd, "ENOTTY: chan=%d cmd=0x%x\n", pos, cmd);
XPD_NOTICE(xpd, " IOC_TYPE=0x%02X\n", _IOC_TYPE(cmd));
XPD_NOTICE(xpd, " IOC_DIR=0x%02X\n", _IOC_DIR(cmd));