diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2009-11-19 23:24:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:43 -0500 |
commit | 1ec1c9bc6fc63b08467c12ce585862ae4e97859c (patch) | |
tree | 41cfc2702be2972940557ce464dcc0da816959b0 /drivers/media/video/cx18 | |
parent | d68b687b1e322e7325b1458d799e8234997e4ccd (diff) |
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 <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18')
-rw-r--r-- | drivers/media/video/cx18/cx18-alsa-main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-alsa-main.c b/drivers/media/video/cx18/cx18-alsa-main.c index 6433ff0ad859..9b652a1649c8 100644 --- a/drivers/media/video/cx18/cx18-alsa-main.c +++ b/drivers/media/video/cx18/cx18-alsa-main.c | |||
@@ -41,7 +41,11 @@ | |||
41 | 41 | ||
42 | int cx18_alsa_debug; | 42 | int cx18_alsa_debug; |
43 | 43 | ||
44 | #define CX18_DEBUG_ALSA_INFO(fmt, arg...) printk(KERN_INFO "%s: " fmt, "cx18-alsa", ## arg) | 44 | #define CX18_DEBUG_ALSA_INFO(fmt, arg...) \ |
45 | do { \ | ||
46 | if (cx18_alsa_debug & 2) \ | ||
47 | printk(KERN_INFO "%s: " fmt, "cx18-alsa", ## arg); \ | ||
48 | } while (0); | ||
45 | 49 | ||
46 | module_param_named(debug, cx18_alsa_debug, int, 0644); | 50 | module_param_named(debug, cx18_alsa_debug, int, 0644); |
47 | MODULE_PARM_DESC(debug, | 51 | MODULE_PARM_DESC(debug, |