summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/dahdi/wctc4xxp/base.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c
index 5e0133b..8e35a36 100644
--- a/drivers/dahdi/wctc4xxp/base.c
+++ b/drivers/dahdi/wctc4xxp/base.c
@@ -1139,9 +1139,12 @@ send_create_channel_cmd(struct wcdte *wc, struct tcb *cmd, u16 timeslot,
return res;
if (0x0000 != response_header(cmd)->params[0]) {
- /* The DTE failed to create the channel. */
- /* TODO put some debug information here. */
- WARN_ON(1);
+ if (printk_ratelimit()) {
+ dev_warn(&wc->pdev->dev,
+ "Failed to create channel in timeslot " \
+ "%d. Response from DTE was (%04x).\n",
+ timeslot, response_header(cmd)->params[0]);
+ }
free_cmd(cmd->response);
cmd->response = NULL;
return -EIO;