The patch number 14027 was added via Devin Heitmueller 
<dheitmuel...@kernellabs.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Devin Heitmueller  <dheitmuel...@kernellabs.com>
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.

Priority: normal

Signed-off-by: Devin Heitmueller <dheitmuel...@kernellabs.com>


---

 linux/drivers/media/video/cx18/cx18-alsa-main.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff -r 00df15779c2d -r dd0a949961c3 
linux/drivers/media/video/cx18/cx18-alsa-main.c
--- a/linux/drivers/media/video/cx18/cx18-alsa-main.c   Thu Nov 19 23:15:54 
2009 -0500
+++ b/linux/drivers/media/video/cx18/cx18-alsa-main.c   Thu Nov 19 23:24:57 
2009 -0500
@@ -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,


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/dd0a949961c3cf165e8f1d024a07f26b86a598c4

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to