summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2020-03-10 00:48:10 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2020-03-11 11:05:58 +0300
commit00b383b8abd1207b2c86e09834ad1617f1dd0388 (patch)
tree7d5166a9765cf9c7d96fec70dc11bfd01c7fc987 /net/bluetooth/hci_request.c
parent2a4f3909d0fbdac9352e35c6f6cfd81bb2101e50 (diff)
downloadlinux-00b383b8abd1207b2c86e09834ad1617f1dd0388.tar.xz
Bluetooth: Use bt_dev_err for RPA generation failure message
When the RPA generation fails, indicate the error with a device specifc error message. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index 2a1b64dbf76e..53179ae856ae 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -1499,7 +1499,7 @@ int hci_get_random_address(struct hci_dev *hdev, bool require_privacy,
err = smp_generate_rpa(hdev, hdev->irk, &hdev->rpa);
if (err < 0) {
- BT_ERR("%s failed to generate new RPA", hdev->name);
+ bt_dev_err(hdev, "failed to generate new RPA");
return err;
}