Skip to contentSkip to conversation

bluetooth: btmrvl: print filename of firmware in error msg

PATCH New Stefan Christ 1 participant 1 message Mar 17, 2016 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: btmrvl: print filename of firmware in error msg

When the firmware file cannot be loaded, print the filename in the error message. So the user has a clue which file is missing.

---
 drivers/bluetooth/btmrvl_sdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btmrvl_sdio.c +2 -2
index 6ed8acf..a88f031 100644
@@ -490,8 +490,8 @@ static int btmrvl_sdio_download_fw_w_helper(struct btmrvl_sdio_card *card)
 	ret = request_firmware(&fw_firmware, card->firmware,
 							&card->func->dev);
 	if ((ret < 0) || !fw_firmware) {
-		BT_ERR("request_firmware(firmware) failed, error code = %d",
-									ret);
+		BT_ERR("Requesting firmware %s failed, error code = %d",
+							card->firmware, ret);
 		ret = -ENOENT;
 		goto done;
 	}
Signature · 1 line
1.9.1