OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a4f390
)
Bluetooth: Use bt_dev_err for RPA generation failure message
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 9 Mar 2020 21:48:10 +0000
(22:48 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 11 Mar 2020 08:05:58 +0000
(10:05 +0200)
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>
net/bluetooth/hci_request.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_request.c
b/net/bluetooth/hci_request.c
index
2a1b64d
..
53179ae
100644
(file)
--- 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;
}