Skip to content

Commit

Permalink
Bluetooth: correct debug output
Browse files Browse the repository at this point in the history
l2cap_set_timer function prints sk instead of chan pointer.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo F. Padovan committed Nov 7, 2011
1 parent c6337ea commit 457f485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static u16 l2cap_alloc_cid(struct l2cap_conn *conn)

static void l2cap_set_timer(struct l2cap_chan *chan, struct timer_list *timer, long timeout)
{
BT_DBG("chan %p state %d timeout %ld", chan->sk, chan->state, timeout);
BT_DBG("chan %p state %d timeout %ld", chan, chan->state, timeout);

if (!mod_timer(timer, jiffies + msecs_to_jiffies(timeout)))
chan_hold(chan);
Expand Down

0 comments on commit 457f485

Please sign in to comment.