From: Devin Heitmueller Date: Fri, 20 Nov 2009 04:24:57 +0000 (-0300) Subject: V4L/DVB: cx18: cleanup cx18-alsa debug logging X-Git-Tag: v2.6.34-rc1~280^2~210 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1ec1c9bc6fc63b08467c12ce585862ae4e97859c;p=~shefty%2Frdma-dev.git 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: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx18/cx18-alsa-main.c b/drivers/media/video/cx18/cx18-alsa-main.c index 6433ff0ad85..9b652a1649c 100644 --- a/drivers/media/video/cx18/cx18-alsa-main.c +++ b/drivers/media/video/cx18/cx18-alsa-main.c @@ -41,7 +41,11 @@ 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_PARM_DESC(debug,