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/hci_conn.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/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index b9196a44f759..53202f6733ae 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -320,7 +320,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst) | |||
320 | { | 320 | { |
321 | struct hci_conn *conn; | 321 | struct hci_conn *conn; |
322 | 322 | ||
323 | BT_DBG("%s dst %s", hdev->name, batostr(dst)); | 323 | BT_DBG("%s dst %pMR", hdev->name, dst); |
324 | 324 | ||
325 | conn = kzalloc(sizeof(struct hci_conn), GFP_KERNEL); | 325 | conn = kzalloc(sizeof(struct hci_conn), GFP_KERNEL); |
326 | if (!conn) | 326 | if (!conn) |
@@ -437,7 +437,7 @@ struct hci_dev *hci_get_route(bdaddr_t *dst, bdaddr_t *src) | |||
437 | int use_src = bacmp(src, BDADDR_ANY); | 437 | int use_src = bacmp(src, BDADDR_ANY); |
438 | struct hci_dev *hdev = NULL, *d; | 438 | struct hci_dev *hdev = NULL, *d; |
439 | 439 | ||
440 | BT_DBG("%s -> %s", batostr(src), batostr(dst)); | 440 | BT_DBG("%pMR -> %pMR", src, dst); |
441 | 441 | ||
442 | read_lock(&hci_dev_list_lock); | 442 | read_lock(&hci_dev_list_lock); |
443 | 443 | ||
@@ -567,7 +567,7 @@ static struct hci_conn *hci_connect_sco(struct hci_dev *hdev, int type, | |||
567 | struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, | 567 | struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, |
568 | __u8 dst_type, __u8 sec_level, __u8 auth_type) | 568 | __u8 dst_type, __u8 sec_level, __u8 auth_type) |
569 | { | 569 | { |
570 | BT_DBG("%s dst %s type 0x%x", hdev->name, batostr(dst), type); | 570 | BT_DBG("%s dst %pMR type 0x%x", hdev->name, dst, type); |
571 | 571 | ||
572 | switch (type) { | 572 | switch (type) { |
573 | case LE_LINK: | 573 | case LE_LINK: |