diff options
Diffstat (limited to 'drivers/isdn/mISDN/tei.c')
-rw-r--r-- | drivers/isdn/mISDN/tei.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/drivers/isdn/mISDN/tei.c b/drivers/isdn/mISDN/tei.c index 1b85d9d27496..687c9b6264ab 100644 --- a/drivers/isdn/mISDN/tei.c +++ b/drivers/isdn/mISDN/tei.c | |||
@@ -79,14 +79,19 @@ static void | |||
79 | da_debug(struct FsmInst *fi, char *fmt, ...) | 79 | da_debug(struct FsmInst *fi, char *fmt, ...) |
80 | { | 80 | { |
81 | struct manager *mgr = fi->userdata; | 81 | struct manager *mgr = fi->userdata; |
82 | struct va_format vaf; | ||
82 | va_list va; | 83 | va_list va; |
83 | 84 | ||
84 | if (!(*debug & DEBUG_L2_TEIFSM)) | 85 | if (!(*debug & DEBUG_L2_TEIFSM)) |
85 | return; | 86 | return; |
87 | |||
86 | va_start(va, fmt); | 88 | va_start(va, fmt); |
87 | printk(KERN_DEBUG "mgr(%d): ", mgr->ch.st->dev->id); | 89 | |
88 | vprintk(fmt, va); | 90 | vaf.fmt = fmt; |
89 | printk("\n"); | 91 | vaf.va = &va; |
92 | |||
93 | printk(KERN_DEBUG "mgr(%d): %pV\n", mgr->ch.st->dev->id, &vaf); | ||
94 | |||
90 | va_end(va); | 95 | va_end(va); |
91 | } | 96 | } |
92 | 97 | ||
@@ -223,14 +228,20 @@ static void | |||
223 | tei_debug(struct FsmInst *fi, char *fmt, ...) | 228 | tei_debug(struct FsmInst *fi, char *fmt, ...) |
224 | { | 229 | { |
225 | struct teimgr *tm = fi->userdata; | 230 | struct teimgr *tm = fi->userdata; |
231 | struct va_format vaf; | ||
226 | va_list va; | 232 | va_list va; |
227 | 233 | ||
228 | if (!(*debug & DEBUG_L2_TEIFSM)) | 234 | if (!(*debug & DEBUG_L2_TEIFSM)) |
229 | return; | 235 | return; |
236 | |||
230 | va_start(va, fmt); | 237 | va_start(va, fmt); |
231 | printk(KERN_DEBUG "sapi(%d) tei(%d): ", tm->l2->sapi, tm->l2->tei); | 238 | |
232 | vprintk(fmt, va); | 239 | vaf.fmt = fmt; |
233 | printk("\n"); | 240 | vaf.va = &va; |
241 | |||
242 | printk(KERN_DEBUG "sapi(%d) tei(%d): %pV\n", | ||
243 | tm->l2->sapi, tm->l2->tei, &vaf); | ||
244 | |||
234 | va_end(va); | 245 | va_end(va); |
235 | } | 246 | } |
236 | 247 | ||