Skip to content

Commit

Permalink
Bluetooth: btusb: print firmware file name on error loading firmware
Browse files Browse the repository at this point in the history
print the firmware file name on error loading from fie system

Signed-off-by: Kiran K <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
kirankrishnappa-intel authored and holtmann committed Mar 8, 2021
1 parent 2f40796 commit 62acbbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,8 @@ static int btusb_intel_download_firmware_newgen(struct hci_dev *hdev,
btusb_setup_intel_newgen_get_fw_name(ver, fwname, sizeof(fwname), "sfi");
err = request_firmware(&fw, fwname, &hdev->dev);
if (err < 0) {
bt_dev_err(hdev, "Failed to load Intel firmware file (%d)", err);
bt_dev_err(hdev, "Failed to load Intel firmware file %s (%d)",
fwname, err);
return err;
}

Expand Down Expand Up @@ -2734,7 +2735,8 @@ static int btusb_intel_download_firmware(struct hci_dev *hdev,

err = request_firmware(&fw, fwname, &hdev->dev);
if (err < 0) {
bt_dev_err(hdev, "Failed to load Intel firmware file (%d)", err);
bt_dev_err(hdev, "Failed to load Intel firmware file %s (%d)",
fwname, err);
return err;
}

Expand Down

0 comments on commit 62acbbb

Please sign in to comment.