summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/main.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-03-08 10:20:55 -0800
committerJohn W. Linville <linville@tuxdriver.com>2012-03-12 14:19:36 -0400
commit98b36a029550def4b3e76cc44d4345bf20a729bd (patch)
tree587283350b0b82234768d059645748610c7bc064 /drivers/net/wireless/ath/main.c
parent4e13f092f755df5ed8169c8d8bfb952dc057e1aa (diff)
downloadtalos-obmc-linux-98b36a029550def4b3e76cc44d4345bf20a729bd.tar.gz
talos-obmc-linux-98b36a029550def4b3e76cc44d4345bf20a729bd.zip
ath9k: Add wiphy name to log messages.
On systems with multiple NICs, it's nice to know which one is producing warnings. Here is an example of the new ouput: ath: wiphy0: Failed to stop TX DMA, queues=0x005! Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/main.c')
-rw-r--r--drivers/net/wireless/ath/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c
index d9218fe02036..ea2c737138d3 100644
--- a/drivers/net/wireless/ath/main.c
+++ b/drivers/net/wireless/ath/main.c
@@ -57,7 +57,8 @@ struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
}
EXPORT_SYMBOL(ath_rxbuf_alloc);
-void ath_printk(const char *level, const char *fmt, ...)
+void ath_printk(const char *level, const struct ath_common* common,
+ const char *fmt, ...)
{
struct va_format vaf;
va_list args;
@@ -67,7 +68,11 @@ void ath_printk(const char *level, const char *fmt, ...)
vaf.fmt = fmt;
vaf.va = &args;
- printk("%sath: %pV", level, &vaf);
+ if (common && common->hw && common->hw->wiphy)
+ printk("%sath: %s: %pV",
+ level, wiphy_name(common->hw->wiphy), &vaf);
+ else
+ printk("%sath: %pV", level, &vaf);
va_end(args);
}
OpenPOWER on IntegriCloud