Skip to content

Commit

Permalink
wl12xx: Print nvs/fw file name if loading fails.
Browse files Browse the repository at this point in the history
Print the name of nvs/fw if request_firmware fails. This will make
troubleshooting a bit easier.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Pontus Fuchs authored and Luciano Coelho committed Dec 1, 2011
1 parent 341f2c1 commit 3589893
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ static int wl1271_fetch_firmware(struct wl1271 *wl)
ret = request_firmware(&fw, fw_name, wl->dev);

if (ret < 0) {
wl1271_error("could not get firmware: %d", ret);
wl1271_error("could not get firmware %s: %d", fw_name, ret);
return ret;
}

Expand Down Expand Up @@ -1093,7 +1093,8 @@ static int wl1271_fetch_nvs(struct wl1271 *wl)
ret = request_firmware(&fw, WL12XX_NVS_NAME, wl->dev);

if (ret < 0) {
wl1271_error("could not get nvs file: %d", ret);
wl1271_error("could not get nvs file %s: %d", WL12XX_NVS_NAME,
ret);
return ret;
}

Expand Down

0 comments on commit 3589893

Please sign in to comment.