diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-09-25 05:49:43 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-09-27 17:10:00 -0400 |
commit | 6ed93dc6427d14cdfe0b272cc0a9ee4685ce9ad7 (patch) | |
tree | fbb25833b61cbaabe5a7cd81240f02334bf999b7 /net/bluetooth/l2cap_core.c | |
parent | 36a75f1b3ecf94dcf140b9d3d2f7a03b7e258480 (diff) |
Bluetooth: Use %pMR in debug instead of batostr
Instead of old unsafe batostr function use %pMR print specifier
for printing Bluetooth addresses in debug and error statements.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index a347522b2144..bb42d95f4f41 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -1471,7 +1471,7 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid, | |||
1471 | __u8 auth_type; | 1471 | __u8 auth_type; |
1472 | int err; | 1472 | int err; |
1473 | 1473 | ||
1474 | BT_DBG("%s -> %s (type %u) psm 0x%2.2x", batostr(src), batostr(dst), | 1474 | BT_DBG("%pMR -> %pMR (type %u) psm 0x%2.2x", src, dst, |
1475 | dst_type, __le16_to_cpu(psm)); | 1475 | dst_type, __le16_to_cpu(psm)); |
1476 | 1476 | ||
1477 | hdev = hci_get_route(dst, src); | 1477 | hdev = hci_get_route(dst, src); |
@@ -5346,7 +5346,7 @@ int l2cap_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr) | |||
5346 | int exact = 0, lm1 = 0, lm2 = 0; | 5346 | int exact = 0, lm1 = 0, lm2 = 0; |
5347 | struct l2cap_chan *c; | 5347 | struct l2cap_chan *c; |
5348 | 5348 | ||
5349 | BT_DBG("hdev %s, bdaddr %s", hdev->name, batostr(bdaddr)); | 5349 | BT_DBG("hdev %s, bdaddr %pMR", hdev->name, bdaddr); |
5350 | 5350 | ||
5351 | /* Find listening sockets and check their link_mode */ | 5351 | /* Find listening sockets and check their link_mode */ |
5352 | read_lock(&chan_list_lock); | 5352 | read_lock(&chan_list_lock); |
@@ -5376,7 +5376,7 @@ void l2cap_connect_cfm(struct hci_conn *hcon, u8 status) | |||
5376 | { | 5376 | { |
5377 | struct l2cap_conn *conn; | 5377 | struct l2cap_conn *conn; |
5378 | 5378 | ||
5379 | BT_DBG("hcon %p bdaddr %s status %d", hcon, batostr(&hcon->dst), status); | 5379 | BT_DBG("hcon %p bdaddr %pMR status %d", hcon, &hcon->dst, status); |
5380 | 5380 | ||
5381 | if (!status) { | 5381 | if (!status) { |
5382 | conn = l2cap_conn_add(hcon, status); | 5382 | conn = l2cap_conn_add(hcon, status); |