summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx23885/cx23885-vbi.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-01-12 09:36:36 -0500
committerSteven Toth <stoth@hauppauge.com>2008-01-12 09:36:36 -0500
commitfaec69843e003fb347d73ca72159b7c892eed687 (patch)
tree595a0692ac9f0719d698f6d6a6ea1dd1d530c1ed /linux/drivers/media/video/cx23885/cx23885-vbi.c
parent66f3e98340a34bd0062a84e6b8e2aa84d29c42e3 (diff)
downloadmediapointer-dvb-s2-faec69843e003fb347d73ca72159b7c892eed687.tar.gz
mediapointer-dvb-s2-faec69843e003fb347d73ca72159b7c892eed687.tar.bz2
cx23885: dprintk macro cleanup
From: Steven Toth <stoth@hauppauge.com> Added missing do { } while (0) Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media/video/cx23885/cx23885-vbi.c')
-rw-r--r--linux/drivers/media/video/cx23885/cx23885-vbi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-vbi.c b/linux/drivers/media/video/cx23885/cx23885-vbi.c
index c7a563a4d..a6cf4146d 100644
--- a/linux/drivers/media/video/cx23885/cx23885-vbi.c
+++ b/linux/drivers/media/video/cx23885/cx23885-vbi.c
@@ -32,12 +32,14 @@ static unsigned int vbibufs = 4;
module_param(vbibufs, int, 0644);
MODULE_PARM_DESC(vbibufs, "number of vbi buffers, range 2-32");
-static unsigned int vbi_debug = 0;
+static unsigned int vbi_debug;
module_param(vbi_debug, int, 0644);
MODULE_PARM_DESC(vbi_debug, "enable debug messages [vbi]");
-#define dprintk(level, fmt, arg...) if (vbi_debug >= level) \
- printk(KERN_DEBUG "%s: " fmt, dev->name , ## arg)
+#define dprintk(level, fmt, arg...)\
+ do { if (vbi_debug >= level)\
+ printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
+ } while (0)
/* ------------------------------------------------------------------ */