X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4ac25984232b3ae80be36c6357cf89f4c2919ca6..f251f740878af188b1f27d19ec921efa6c577349:/package/mac80211/patches/018-revert_printk_va_format.patch diff --git a/package/mac80211/patches/018-revert_printk_va_format.patch b/package/mac80211/patches/018-revert_printk_va_format.patch index d50022e5c..960a65b91 100644 --- a/package/mac80211/patches/018-revert_printk_va_format.patch +++ b/package/mac80211/patches/018-revert_printk_va_format.patch @@ -1,30 +1,6 @@ ---- a/drivers/net/wireless/ath/debug.c -+++ b/drivers/net/wireless/ath/debug.c -@@ -19,19 +19,14 @@ - - void ath_print(struct ath_common *common, int dbg_mask, const char *fmt, ...) - { -- struct va_format vaf; - va_list args; - - if (likely(!(common->debug_mask & dbg_mask))) - return; - - va_start(args, fmt); -- -- vaf.fmt = fmt; -- vaf.va = &args; -- -- printk(KERN_DEBUG "ath: %pV", &vaf); -- -+ printk(KERN_DEBUG "ath: "); -+ vprintk(fmt, args); - va_end(args); - } - EXPORT_SYMBOL(ath_print); --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c -@@ -322,83 +322,59 @@ static int b43_ratelimit(struct b43_wl * +@@ -334,83 +334,59 @@ static int b43_ratelimit(struct b43_wl * void b43info(struct b43_wl *wl, const char *fmt, ...) {