提交 1ec1c9bc 编写于 作者: D Devin Heitmueller 提交者: Mauro Carvalho Chehab

V4L/DVB: cx18: cleanup cx18-alsa debug logging

Fix the debug macro so that it is dependent on the modprobe parameter.

This work was sponsored by ONELAN Limited.
Signed-off-by: NDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 d68b687b
...@@ -41,7 +41,11 @@ ...@@ -41,7 +41,11 @@
int cx18_alsa_debug; int cx18_alsa_debug;
#define CX18_DEBUG_ALSA_INFO(fmt, arg...) printk(KERN_INFO "%s: " fmt, "cx18-alsa", ## arg) #define CX18_DEBUG_ALSA_INFO(fmt, arg...) \
do { \
if (cx18_alsa_debug & 2) \
printk(KERN_INFO "%s: " fmt, "cx18-alsa", ## arg); \
} while (0);
module_param_named(debug, cx18_alsa_debug, int, 0644); module_param_named(debug, cx18_alsa_debug, int, 0644);
MODULE_PARM_DESC(debug, MODULE_PARM_DESC(debug,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册