summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-11 10:37:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-12-11 10:37:42 +0000
commitd1c110e228841087eafcfe092747887213486bb1 (patch)
tree8c7e7ae62ea3771ea9ff9fee9d1ce413c0a83521
parente006253f112608c411f75eadfb28004edead07d6 (diff)
downloadmtk-20170518-d1c110e228841087eafcfe092747887213486bb1.zip
mtk-20170518-d1c110e228841087eafcfe092747887213486bb1.tar.gz
mtk-20170518-d1c110e228841087eafcfe092747887213486bb1.tar.bz2
ath9k: add missing %pV printk revert
SVN-Revision: 24480
-rw-r--r--package/mac80211/patches/018-revert_printk_va_format.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/018-revert_printk_va_format.patch b/package/mac80211/patches/018-revert_printk_va_format.patch
index 2cbc0f9..5ac97be 100644
--- a/package/mac80211/patches/018-revert_printk_va_format.patch
+++ b/package/mac80211/patches/018-revert_printk_va_format.patch
@@ -186,3 +186,24 @@
va_end(args);
}
#endif /* DEBUG */
+--- a/drivers/net/wireless/ath/main.c
++++ b/drivers/net/wireless/ath/main.c
+@@ -60,16 +60,13 @@ EXPORT_SYMBOL(ath_rxbuf_alloc);
+ int ath_printk(const char *level, struct ath_common *common,
+ const char *fmt, ...)
+ {
+- struct va_format vaf;
+ va_list args;
+ int rtn;
+
+ va_start(args, fmt);
+
+- vaf.fmt = fmt;
+- vaf.va = &args;
+-
+- rtn = printk("%sath: %pV", level, &vaf);
++ printk("%sath: ", level);
++ rtn = vprintk(fmt, args);
+
+ va_end(args);
+