Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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)			\