|
@@ -79,13 +79,13 @@ void ath_printk(const char *level, const struct ath_common* common,
|
|
|
vaf.fmt = fmt;
|
|
|
vaf.va = &args;
|
|
|
|
|
|
- if (common && common->hw && common->hw->wiphy)
|
|
|
+ if (common && common->hw && common->hw->wiphy) {
|
|
|
printk("%sath: %s: %pV",
|
|
|
level, wiphy_name(common->hw->wiphy), &vaf);
|
|
|
- else
|
|
|
+ trace_ath_log(common->hw->wiphy, &vaf);
|
|
|
+ } else {
|
|
|
printk("%sath: %pV", level, &vaf);
|
|
|
-
|
|
|
- trace_ath_log(common->hw->wiphy, &vaf);
|
|
|
+ }
|
|
|
|
|
|
va_end(args);
|
|
|
}
|