summaryrefslogtreecommitdiff
path: root/package/mac80211
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-11 10:37:42 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-11 10:37:42 +0000
commit88e0ef4de7f2d2da6d0edc8f6eb80d0e16f81094 (patch)
tree65971742264d4abd3b920e2f0b655d650db8b925 /package/mac80211
parent864ccd894b084d2792425b0fee718262778b45c4 (diff)
ath9k: add missing %pV printk revert
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24480 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-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 2cbc0f95e9..5ac97be0a1 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);
+