Skip to content

Commit

Permalink
ath9k: add EEPROM offset to debug message
Browse files Browse the repository at this point in the history
Show the EEPROM offset of the failed read operation
in 'ath9k_hw_nvram_read'. The debug message is more
informative this way.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Dec 10, 2012
1 parent 2fd2cdf commit 7177d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath9k/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ bool ath9k_hw_nvram_read(struct ath_common *common, u32 off, u16 *data)

ret = common->bus_ops->eeprom_read(common, off, data);
if (!ret)
ath_dbg(common, EEPROM, "Unable to read eeprom region\n");
ath_dbg(common, EEPROM,
"unable to read eeprom region at offset %u\n", off);

return ret;
}
Expand Down

0 comments on commit 7177d8f

Please sign in to comment.