Commit 474ce781 authored by Enrico Scholz's avatar Enrico Scholz Committed by Mauro Carvalho Chehab

V4L/DVB (4740): Fixed an if-block to avoid floating with debug-messages

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: default avatarEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent fc2fa31f
......@@ -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) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment