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-core.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-core.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-core.c | 8 |
1 files changed, 5 insertions, 3 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"); | |||
36 | MODULE_AUTHOR("Steven Toth <stoth@hauppauge.com>"); | 36 | MODULE_AUTHOR("Steven Toth <stoth@hauppauge.com>"); |
37 | MODULE_LICENSE("GPL"); | 37 | MODULE_LICENSE("GPL"); |
38 | 38 | ||
39 | static unsigned int debug = 0; | 39 | static unsigned int debug; |
40 | module_param(debug,int,0644); | 40 | module_param(debug,int,0644); |
41 | MODULE_PARM_DESC(debug,"enable debug messages"); | 41 | MODULE_PARM_DESC(debug,"enable debug messages"); |
42 | 42 | ||
@@ -44,8 +44,10 @@ static unsigned int card[] = {[0 ... (CX23885_MAXBOARDS - 1)] = UNSET }; | |||
44 | module_param_array(card, int, NULL, 0444); | 44 | module_param_array(card, int, NULL, 0444); |
45 | MODULE_PARM_DESC(card,"card type"); | 45 | MODULE_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 | ||
50 | static unsigned int cx23885_devcount; | 52 | static unsigned int cx23885_devcount; |
51 | 53 | ||