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-vbi.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-vbi.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-vbi.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; | |||
31 | module_param(vbibufs, int, 0644); | 31 | module_param(vbibufs, int, 0644); |
32 | MODULE_PARM_DESC(vbibufs, "number of vbi buffers, range 2-32"); | 32 | MODULE_PARM_DESC(vbibufs, "number of vbi buffers, range 2-32"); |
33 | 33 | ||
34 | static unsigned int vbi_debug = 0; | 34 | static unsigned int vbi_debug; |
35 | module_param(vbi_debug, int, 0644); | 35 | module_param(vbi_debug, int, 0644); |
36 | MODULE_PARM_DESC(vbi_debug, "enable debug messages [vbi]"); | 36 | MODULE_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 | ||