]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
rtlwifi: btcoexist: avoid format string in printk
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 12 Sep 2014 00:02:10 +0000 (19:02 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:50 +0000 (15:00 -0400)
Recent changes to this driver inadvertently reverted the change made by Kees
Cook in commit 6437f51ec3.

Reported-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h

index 0d185e61caab786f0612b481a0b177b2e6dd2669..bd03b8cccd323e2b06c74fc8d0cc83c82a638d6b 100644 (file)
@@ -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 {                                                    \