diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-12 09:36:36 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:51 -0500 |
commit | 4513fc696e273d64ea32f2366748aed810316ecc (patch) | |
tree | 567d831ce0518f44d48cfcadebce86781266563b /drivers/media/video/cx23885/cx23885-video.c | |
parent | d685a483b8c92e3d0580b6c28e2ed531391c8c46 (diff) |
V4L/DVB (7014): cx23885: dprintk macro cleanup
Added missing do { } while (0)
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 9 |
1 files changed, 5 insertions, 4 deletions
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"); | |||
57 | MODULE_PARM_DESC(vbi_nr, "vbi device numbers"); | 57 | MODULE_PARM_DESC(vbi_nr, "vbi device numbers"); |
58 | MODULE_PARM_DESC(radio_nr, "radio device numbers"); | 58 | MODULE_PARM_DESC(radio_nr, "radio device numbers"); |
59 | 59 | ||
60 | static unsigned int video_debug = 0; | 60 | static unsigned int video_debug; |
61 | module_param(video_debug, int, 0644); | 61 | module_param(video_debug, int, 0644); |
62 | MODULE_PARM_DESC(video_debug, "enable debug messages [video]"); | 62 | MODULE_PARM_DESC(video_debug, "enable debug messages [video]"); |
63 | 63 | ||
64 | static unsigned int irq_debug = 0; | 64 | static unsigned int irq_debug; |
65 | module_param(irq_debug, int, 0644); | 65 | module_param(irq_debug, int, 0644); |
66 | MODULE_PARM_DESC(irq_debug, "enable debug messages [IRQ handler]"); | 66 | MODULE_PARM_DESC(irq_debug, "enable debug messages [IRQ handler]"); |
67 | 67 | ||
@@ -70,8 +70,9 @@ module_param(vid_limit, int, 0644); | |||
70 | MODULE_PARM_DESC(vid_limit, "capture memory limit in megabytes"); | 70 | MODULE_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 */ |