Bluetooth: Add type information to the hci_connect() debug statement
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 27 Jul 2012 22:33:00 +0000 (19:33 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 15 Aug 2012 03:53:21 +0000 (00:53 -0300)
Now that we have a "connect" function for each link type, we should be
able to indentify which function is going to be called.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_conn.c

index 2e7b7765e0eaae5ff633599de456032a3d37a1f4..98670b1df17be448160cdb91e84d0eceeaf1d0aa 100644 (file)
@@ -566,7 +566,7 @@ static struct hci_conn *hci_connect_sco(struct hci_dev *hdev, bdaddr_t *dst,
 struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst,
                             __u8 dst_type, __u8 sec_level, __u8 auth_type)
 {
-       BT_DBG("%s dst %s", hdev->name, batostr(dst));
+       BT_DBG("%s dst %s type 0x%x", hdev->name, batostr(dst), type);
 
        switch (type) {
        case LE_LINK: