Bluetooth: Prefix hex numbers with object name
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 17 Feb 2012 09:40:57 +0000 (11:40 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 17 Feb 2012 11:02:33 +0000 (13:02 +0200)
Several hex numbers were printed without object name which
complicates debugging.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c

index f38e1b11d8356868e27e7c18f86d28c5c9c3f0d1..7ee6895c4b0c56c69650bfb560dd2d489219cf90 100644 (file)
@@ -80,7 +80,7 @@ void hci_acl_connect(struct hci_conn *conn)
        struct inquiry_entry *ie;
        struct hci_cp_create_conn cp;
 
-       BT_DBG("%p", conn);
+       BT_DBG("hcon %p", conn);
 
        conn->state = BT_CONNECT;
        conn->out = true;
index 88968e711d3dac7dbcb2d4ef86b430e2d6c047f7..37736c6603fc0c87d99b92a77b8e64d2c61021c2 100644 (file)
@@ -217,7 +217,7 @@ static u16 l2cap_alloc_cid(struct l2cap_conn *conn)
 
 static void l2cap_state_change(struct l2cap_chan *chan, int state)
 {
-       BT_DBG("%p %s -> %s", chan, state_to_string(chan->state),
+       BT_DBG("chan %p %s -> %s", chan, state_to_string(chan->state),
                                                state_to_string(state));
 
        chan->state = state;