X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=package%2Fmac80211%2Fpatches%2F018-revert_printk_va_format.patch;h=5ac97be0a140e01a0430d20b2a0d3c627438cda1;hb=88e0ef4de7f2d2da6d0edc8f6eb80d0e16f81094;hp=2cbc0f95e9a1e5cd87e43c6d6d38acc316101cc7;hpb=864ccd894b084d2792425b0fee718262778b45c4;p=openwrt-working-2016%2F.git 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); +