Skip to content

Commit 3c34d64

Browse files
committed
Bluetooth: hci_core: Print number of packets in conn->data_q
This attempts to print the number of packets pending to be transmitted in the conn->data_q. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 9eb1433 commit 3c34d64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

net/bluetooth/hci_core.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,6 +3267,8 @@ static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue,
32673267

32683268
spin_unlock_bh(&queue->lock);
32693269
}
3270+
3271+
bt_dev_dbg(hdev, "chan %p queued %d", chan, skb_queue_len(queue));
32703272
}
32713273

32723274
void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags)
@@ -3298,6 +3300,10 @@ void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb)
32983300
hci_skb_pkt_type(skb) = HCI_SCODATA_PKT;
32993301

33003302
skb_queue_tail(&conn->data_q, skb);
3303+
3304+
bt_dev_dbg(hdev, "hcon %p queued %d", conn,
3305+
skb_queue_len(&conn->data_q));
3306+
33013307
queue_work(hdev->workqueue, &hdev->tx_work);
33023308
}
33033309

@@ -3357,6 +3363,8 @@ static void hci_queue_iso(struct hci_conn *conn, struct sk_buff_head *queue,
33573363
__skb_queue_tail(queue, skb);
33583364
} while (list);
33593365
}
3366+
3367+
bt_dev_dbg(hdev, "hcon %p queued %d", conn, skb_queue_len(queue));
33603368
}
33613369

33623370
void hci_send_iso(struct hci_conn *conn, struct sk_buff *skb)

0 commit comments

Comments
 (0)