]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Bluetooth: btusb: mediatek: Add err code to btusb claim iso printout
authorDouglas Anderson <dianders@chromium.org>
Thu, 16 Jan 2025 03:36:37 +0000 (19:36 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 25 Mar 2025 16:26:41 +0000 (12:26 -0400)
Add the error code to the message "Failed to claim iso
interface". That allows us to know which error case
usb_driver_claim_interface() hit.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c

index a0fc465458b2f993a41af77b056d271f7b0938e9..5b7dec28de8b96fad51ea444edf869d3cccf1826 100644 (file)
@@ -2688,7 +2688,7 @@ static void btusb_mtk_claim_iso_intf(struct btusb_data *data)
        device_unlock(&btmtk_data->isopkt_intf->dev);
        if (err < 0) {
                btmtk_data->isopkt_intf = NULL;
-               bt_dev_err(data->hdev, "Failed to claim iso interface");
+               bt_dev_err(data->hdev, "Failed to claim iso interface: %d", err);
                return;
        }