From: Larry Finger Date: Fri, 12 Sep 2014 00:02:10 +0000 (-0500) Subject: rtlwifi: btcoexist: avoid format string in printk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b5447ce630cdc231caf4f958325f8fa925216bf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rtlwifi: btcoexist: avoid format string in printk Recent changes to this driver inadvertently reverted the change made by Kees Cook in commit 6437f51ec3. Reported-by: Kees Cook Signed-off-by: Larry Finger Cc: Kees Cook Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h index 0d185e61caab..bd03b8cccd32 100644 --- a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h +++ b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h @@ -117,7 +117,7 @@ extern u32 btc_dbg_type[]; #define WIFI_P2P_GC_CONNECTED BIT4 #define CL_SPRINTF snprintf -#define CL_PRINTF printk +#define CL_PRINTF(buf) printk("%s", buf) #define BTC_PRINT(dbgtype, dbgflag, printstr, ...) \ do { \