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

Commit f44e6b42 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] anysee: fix compiler warning



debug_dump macro was defined twice when CONFIG_DVB_USB_DEBUG was
not set. Move debug_dump macro to correct place.

Reported-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e839776f
Loading
Loading
Loading
Loading
+6 −7
Original line number Original line Diff line number Diff line
@@ -41,19 +41,18 @@
#ifdef CONFIG_DVB_USB_DEBUG
#ifdef CONFIG_DVB_USB_DEBUG
#define dprintk(var, level, args...) \
#define dprintk(var, level, args...) \
	do { if ((var & level)) printk(args); } while (0)
	do { if ((var & level)) printk(args); } while (0)
#define DVB_USB_DEBUG_STATUS
#else
#define dprintk(args...)
#define debug_dump(b, l, func)
#define DVB_USB_DEBUG_STATUS " (debugging is not enabled)"
#endif

#define debug_dump(b, l, func) {\
#define debug_dump(b, l, func) {\
	int loop_; \
	int loop_; \
	for (loop_ = 0; loop_ < l; loop_++) \
	for (loop_ = 0; loop_ < l; loop_++) \
		func("%02x ", b[loop_]); \
		func("%02x ", b[loop_]); \
	func("\n");\
	func("\n");\
}
}
#define DVB_USB_DEBUG_STATUS
#else
#define dprintk(args...)
#define debug_dump(b, l, func)
#define DVB_USB_DEBUG_STATUS " (debugging is not enabled)"
#endif


#define deb_info(args...) dprintk(dvb_usb_anysee_debug, 0x01, args)
#define deb_info(args...) dprintk(dvb_usb_anysee_debug, 0x01, args)
#define deb_xfer(args...) dprintk(dvb_usb_anysee_debug, 0x02, args)
#define deb_xfer(args...) dprintk(dvb_usb_anysee_debug, 0x02, args)