aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/mISDN/tei.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/mISDN/tei.c')
-rw-r--r--drivers/isdn/mISDN/tei.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/tei.c b/drivers/isdn/mISDN/tei.c
index 55a7c3dac3c2..778b660f0672 100644
--- a/drivers/isdn/mISDN/tei.c
+++ b/drivers/isdn/mISDN/tei.c
@@ -227,7 +227,7 @@ tei_debug(struct FsmInst *fi, char *fmt, ...)
227 if (!(*debug & DEBUG_L2_TEIFSM)) 227 if (!(*debug & DEBUG_L2_TEIFSM))
228 return; 228 return;
229 va_start(va, fmt); 229 va_start(va, fmt);
230 printk(KERN_DEBUG "tei(%d): ", tm->l2->tei); 230 printk(KERN_DEBUG "sapi(%d) tei(%d): ", tm->l2->sapi, tm->l2->tei);
231 vprintk(fmt, va); 231 vprintk(fmt, va);
232 printk("\n"); 232 printk("\n");
233 va_end(va); 233 va_end(va);
@@ -1191,9 +1191,16 @@ check_data(struct manager *mgr, struct sk_buff *skb)
1191 if ((skb->data[2] & ~0x10) != SABME) 1191 if ((skb->data[2] & ~0x10) != SABME)
1192 return -ENOTCONN; 1192 return -ENOTCONN;
1193 /* We got a SABME for a fixed TEI */ 1193 /* We got a SABME for a fixed TEI */
1194 if (*debug & DEBUG_L2_CTRL)
1195 printk(KERN_DEBUG "%s: SABME sapi(%d) tei(%d)\n",
1196 __func__, sapi, tei);
1194 l2 = create_new_tei(mgr, tei, sapi); 1197 l2 = create_new_tei(mgr, tei, sapi);
1195 if (!l2) 1198 if (!l2) {
1199 if (*debug & DEBUG_L2_CTRL)
1200 printk(KERN_DEBUG "%s: failed to create new tei\n",
1201 __func__);
1196 return -ENOMEM; 1202 return -ENOMEM;
1203 }
1197 ret = l2->ch.send(&l2->ch, skb); 1204 ret = l2->ch.send(&l2->ch, skb);
1198 return ret; 1205 return ret;
1199} 1206}