diff options
author | Pontus Fuchs <pontus.fuchs@gmail.com> | 2011-11-30 15:35:09 +0100 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-12-01 15:55:57 +0200 |
commit | 358989352e70975d1c50ac2a49fc86d41d0518bd (patch) | |
tree | 9a70372fa48f85a692db45dfc868fb062ce08e56 /drivers/net/wireless | |
parent | 341f2c11b5ce7689d3f0acb04574fe6424aa6be0 (diff) | |
download | blackbird-op-linux-358989352e70975d1c50ac2a49fc86d41d0518bd.tar.gz blackbird-op-linux-358989352e70975d1c50ac2a49fc86d41d0518bd.zip |
wl12xx: Print nvs/fw file name if loading fails.
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 8c58001c76d4..8ff1bf5be013 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -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; } @@ -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; } |