aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/cx23885/cx23885-core.c8
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c8
-rw-r--r--drivers/media/video/cx23885/cx23885-i2c.c8
-rw-r--r--drivers/media/video/cx23885/cx23885-vbi.c8
-rw-r--r--drivers/media/video/cx23885/cx23885-video.c9
5 files changed, 24 insertions, 17 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c
index e1b06d79e9b1..8e40c7bcc06d 100644
--- a/drivers/media/video/cx23885/cx23885-core.c
+++ b/drivers/media/video/cx23885/cx23885-core.c
@@ -36,7 +36,7 @@ MODULE_DESCRIPTION("Driver for cx23885 based TV cards");
36MODULE_AUTHOR("Steven Toth <stoth@hauppauge.com>"); 36MODULE_AUTHOR("Steven Toth <stoth@hauppauge.com>");
37MODULE_LICENSE("GPL"); 37MODULE_LICENSE("GPL");
38 38
39static unsigned int debug = 0; 39static unsigned int debug;
40module_param(debug,int,0644); 40module_param(debug,int,0644);
41MODULE_PARM_DESC(debug,"enable debug messages"); 41MODULE_PARM_DESC(debug,"enable debug messages");
42 42
@@ -44,8 +44,10 @@ static unsigned int card[] = {[0 ... (CX23885_MAXBOARDS - 1)] = UNSET };
44module_param_array(card, int, NULL, 0444); 44module_param_array(card, int, NULL, 0444);
45MODULE_PARM_DESC(card,"card type"); 45MODULE_PARM_DESC(card,"card type");
46 46
47#define dprintk(level,fmt, arg...) if (debug >= level) \ 47#define dprintk(level, fmt, arg...)\
48 printk(KERN_DEBUG "%s/0: " fmt, dev->name , ## arg) 48 do { if (debug >= level)\
49 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
50 } while (0)
49 51
50static unsigned int cx23885_devcount; 52static unsigned int cx23885_devcount;
51 53
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index 1b669ee962d0..34910368049e 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -40,10 +40,12 @@
40#include "tuner-xc2028.h" 40#include "tuner-xc2028.h"
41#include "tuner-xc2028-types.h" 41#include "tuner-xc2028-types.h"
42 42
43static unsigned int debug = 0; 43static unsigned int debug;
44 44
45#define dprintk(level,fmt, arg...) if (debug >= level) \ 45#define dprintk(level, fmt, arg...)\
46 printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg) 46 do { if (debug >= level)\
47 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
48 } while (0)
47 49
48/* ------------------------------------------------------------------ */ 50/* ------------------------------------------------------------------ */
49 51
diff --git a/drivers/media/video/cx23885/cx23885-i2c.c b/drivers/media/video/cx23885/cx23885-i2c.c
index fbc4a57a236b..92fe0bd37c84 100644
--- a/drivers/media/video/cx23885/cx23885-i2c.c
+++ b/drivers/media/video/cx23885/cx23885-i2c.c
@@ -29,7 +29,7 @@
29 29
30#include <media/v4l2-common.h> 30#include <media/v4l2-common.h>
31 31
32static unsigned int i2c_debug = 0; 32static unsigned int i2c_debug;
33module_param(i2c_debug, int, 0644); 33module_param(i2c_debug, int, 0644);
34MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); 34MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
35 35
@@ -37,9 +37,9 @@ static unsigned int i2c_scan = 0;
37module_param(i2c_scan, int, 0444); 37module_param(i2c_scan, int, 0444);
38MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 38MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time");
39 39
40#define dprintk(level, fmt, arg...) do { \ 40#define dprintk(level, fmt, arg...)\
41 if (i2c_debug >= level) \ 41 do { if (i2c_debug >= level)\
42 printk(KERN_DEBUG "%s: " fmt, dev->name , ## arg); \ 42 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
43 } while (0) 43 } while (0)
44 44
45#define I2C_WAIT_DELAY 32 45#define I2C_WAIT_DELAY 32
diff --git a/drivers/media/video/cx23885/cx23885-vbi.c b/drivers/media/video/cx23885/cx23885-vbi.c
index 32ec9d5bdbd0..e36e3fcae2fb 100644
--- a/drivers/media/video/cx23885/cx23885-vbi.c
+++ b/drivers/media/video/cx23885/cx23885-vbi.c
@@ -31,12 +31,14 @@ static unsigned int vbibufs = 4;
31module_param(vbibufs, int, 0644); 31module_param(vbibufs, int, 0644);
32MODULE_PARM_DESC(vbibufs, "number of vbi buffers, range 2-32"); 32MODULE_PARM_DESC(vbibufs, "number of vbi buffers, range 2-32");
33 33
34static unsigned int vbi_debug = 0; 34static unsigned int vbi_debug;
35module_param(vbi_debug, int, 0644); 35module_param(vbi_debug, int, 0644);
36MODULE_PARM_DESC(vbi_debug, "enable debug messages [vbi]"); 36MODULE_PARM_DESC(vbi_debug, "enable debug messages [vbi]");
37 37
38#define dprintk(level, fmt, arg...) if (vbi_debug >= level) \ 38#define dprintk(level, fmt, arg...)\
39 printk(KERN_DEBUG "%s: " fmt, dev->name , ## arg) 39 do { if (vbi_debug >= level)\
40 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
41 } while (0)
40 42
41/* ------------------------------------------------------------------ */ 43/* ------------------------------------------------------------------ */
42 44
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c
index 44c809474ba1..d3c4d2c5cbe0 100644
--- a/drivers/media/video/cx23885/cx23885-video.c
+++ b/drivers/media/video/cx23885/cx23885-video.c
@@ -57,11 +57,11 @@ MODULE_PARM_DESC(video_nr, "video device numbers");
57MODULE_PARM_DESC(vbi_nr, "vbi device numbers"); 57MODULE_PARM_DESC(vbi_nr, "vbi device numbers");
58MODULE_PARM_DESC(radio_nr, "radio device numbers"); 58MODULE_PARM_DESC(radio_nr, "radio device numbers");
59 59
60static unsigned int video_debug = 0; 60static unsigned int video_debug;
61module_param(video_debug, int, 0644); 61module_param(video_debug, int, 0644);
62MODULE_PARM_DESC(video_debug, "enable debug messages [video]"); 62MODULE_PARM_DESC(video_debug, "enable debug messages [video]");
63 63
64static unsigned int irq_debug = 0; 64static unsigned int irq_debug;
65module_param(irq_debug, int, 0644); 65module_param(irq_debug, int, 0644);
66MODULE_PARM_DESC(irq_debug, "enable debug messages [IRQ handler]"); 66MODULE_PARM_DESC(irq_debug, "enable debug messages [IRQ handler]");
67 67
@@ -70,8 +70,9 @@ module_param(vid_limit, int, 0644);
70MODULE_PARM_DESC(vid_limit, "capture memory limit in megabytes"); 70MODULE_PARM_DESC(vid_limit, "capture memory limit in megabytes");
71 71
72#define dprintk(level, fmt, arg...)\ 72#define dprintk(level, fmt, arg...)\
73 if (video_debug >= level)\ 73 do { if (video_debug >= level)\
74 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg) 74 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
75 } while (0)
75 76
76/* ------------------------------------------------------------------- */ 77/* ------------------------------------------------------------------- */
77/* static data */ 78/* static data */