Commit 6437f51e authored by Kees Cook's avatar Kees Cook Committed by John W. Linville
Browse files

rtlwifi: btcoexist: avoid format string in printk



Since CL_PRINTF only ever takes a single argument, make sure a format
string cannot leak into printk.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e860c33f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ extern u32 btc_dbg_type[];


#define	CL_SPRINTF	snprintf
#define	CL_PRINTF	printk
#define	CL_PRINTF(buf)	printk("%s", buf)

#define	BTC_PRINT(dbgtype, dbgflag, printstr, ...)		\
	do {							\