Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224347
b: refs/heads/master
c: 020f01e
h: refs/heads/master
i:
  224345: 8615e10
  224343: 7520247
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 16, 2010
1 parent 02fd401 commit 3f4aea1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3654654f7aa79a37dde130afb7409c55b11807e7
refs/heads/master: 020f01ebd04f3429c32586d90598c9f59e54ca7d
10 changes: 7 additions & 3 deletions trunk/drivers/isdn/mISDN/layer1.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,16 @@ static void
l1m_debug(struct FsmInst *fi, char *fmt, ...)
{
struct layer1 *l1 = fi->userdata;
struct va_format vaf;
va_list va;

va_start(va, fmt);
printk(KERN_DEBUG "%s: ", dev_name(&l1->dch->dev.dev));
vprintk(fmt, va);
printk("\n");

vaf.fmt = fmt;
vaf.va = &va;

printk(KERN_DEBUG "%s: %pV\n", dev_name(&l1->dch->dev.dev), &vaf);

va_end(va);
}

Expand Down
12 changes: 9 additions & 3 deletions trunk/drivers/isdn/mISDN/layer2.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@ static void
l2m_debug(struct FsmInst *fi, char *fmt, ...)
{
struct layer2 *l2 = fi->userdata;
struct va_format vaf;
va_list va;

if (!(*debug & DEBUG_L2_FSM))
return;

va_start(va, fmt);
printk(KERN_DEBUG "l2 (sapi %d tei %d): ", l2->sapi, l2->tei);
vprintk(fmt, va);
printk("\n");

vaf.fmt = fmt;
vaf.va = &va;

printk(KERN_DEBUG "l2 (sapi %d tei %d): %pV\n",
l2->sapi, l2->tei, &vaf);

va_end(va);
}

Expand Down
23 changes: 17 additions & 6 deletions trunk/drivers/isdn/mISDN/tei.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,19 @@ static void
da_debug(struct FsmInst *fi, char *fmt, ...)
{
struct manager *mgr = fi->userdata;
struct va_format vaf;
va_list va;

if (!(*debug & DEBUG_L2_TEIFSM))
return;

va_start(va, fmt);
printk(KERN_DEBUG "mgr(%d): ", mgr->ch.st->dev->id);
vprintk(fmt, va);
printk("\n");

vaf.fmt = fmt;
vaf.va = &va;

printk(KERN_DEBUG "mgr(%d): %pV\n", mgr->ch.st->dev->id, &vaf);

va_end(va);
}

Expand Down Expand Up @@ -223,14 +228,20 @@ static void
tei_debug(struct FsmInst *fi, char *fmt, ...)
{
struct teimgr *tm = fi->userdata;
struct va_format vaf;
va_list va;

if (!(*debug & DEBUG_L2_TEIFSM))
return;

va_start(va, fmt);
printk(KERN_DEBUG "sapi(%d) tei(%d): ", tm->l2->sapi, tm->l2->tei);
vprintk(fmt, va);
printk("\n");

vaf.fmt = fmt;
vaf.va = &va;

printk(KERN_DEBUG "sapi(%d) tei(%d): %pV\n",
tm->l2->sapi, tm->l2->tei, &vaf);

va_end(va);
}

Expand Down

0 comments on commit 3f4aea1

Please sign in to comment.