From: Marcel Holtmann Date: Mon, 9 Mar 2020 21:48:10 +0000 (+0100) Subject: Bluetooth: Use bt_dev_err for RPA generation failure message X-Git-Tag: v5.7-rc1~146^2~117^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00b383b8abd1207b2c86e09834ad1617f1dd0388;p=thirdparty%2Flinux.git 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 Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 2a1b64dbf76e4..53179ae856aed 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; }