summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/videodev.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-10-09 16:27:05 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-10-09 16:27:05 -0300
commit19613a57f2270c35f4bfb91c8ed6ffbc947107c7 (patch)
tree0483ebfc5ad66815d2b43763737c8361873e98c4 /linux/drivers/media/video/videodev.c
parent3a445e807434df285d6ce266f38f4db62f563f59 (diff)
downloadmediapointer-dvb-s2-19613a57f2270c35f4bfb91c8ed6ffbc947107c7.tar.gz
mediapointer-dvb-s2-19613a57f2270c35f4bfb91c8ed6ffbc947107c7.tar.bz2
Fixed an if-block to avoid floating with debug-messages
From: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> The dbgarg() macro in videodev.c contains some printk() statements where only the first one is influenced by an if-statement. This causes floating with debug-messages which is fixed by this patch by adding a '{ ... }' pair. Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/videodev.c')
-rw-r--r--linux/drivers/media/video/videodev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c
index f29017482..a8705f7d7 100644
--- a/linux/drivers/media/video/videodev.c
+++ b/linux/drivers/media/video/videodev.c
@@ -17,10 +17,11 @@
*/
#define dbgarg(cmd, fmt, arg...) \
- if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) \
+ if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { \
printk (KERN_DEBUG "%s: ", vfd->name); \
v4l_printk_ioctl(cmd); \
- printk (KERN_DEBUG "%s: " fmt, vfd->name, ## arg);
+ printk (KERN_DEBUG "%s: " fmt, vfd->name, ## arg); \
+ }
#define dbgarg2(fmt, arg...) \
if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) \