| 1 | From 910b74fb0e0369b18aa689ab02c9413235c18f98 Mon Sep 17 00:00:00 2001 |
| 2 | From: Gabor Juhos <juhosg@openwrt.org> |
| 3 | Date: Sun, 9 Dec 2012 16:47:35 +0100 |
| 4 | Subject: [PATCH 2/4] ath9k: add EEPROM offset to debug message |
| 5 | |
| 6 | Show the EEPROM offset of the failed read operation |
| 7 | in 'ath9k_hw_nvram_read'. The debug message is more |
| 8 | informative this way. |
| 9 | |
| 10 | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> |
| 11 | --- |
| 12 | drivers/net/wireless/ath/ath9k/eeprom.c | 3 ++- |
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | --- a/drivers/net/wireless/ath/ath9k/eeprom.c |
| 16 | +++ b/drivers/net/wireless/ath/ath9k/eeprom.c |
| 17 | @@ -119,7 +119,8 @@ bool ath9k_hw_nvram_read(struct ath_comm |
| 18 | |
| 19 | ret = common->bus_ops->eeprom_read(common, off, data); |
| 20 | if (!ret) |
| 21 | - ath_dbg(common, EEPROM, "Unable to read eeprom region\n"); |
| 22 | + ath_dbg(common, EEPROM, |
| 23 | + "unable to read eeprom region at offset %u\n", off); |
| 24 | |
| 25 | return ret; |
| 26 | } |
| 27 | |