summaryrefslogtreecommitdiff
path: root/drivers/media/usb/dvb-usb-v2/anysee.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-08-14 15:56:19 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-15 19:03:25 -0300
commitf44e6b4223fdbb2556faa895861098c32b0ba83f (patch)
tree1a01434fd3f5fc8becc9cadb38e99afd93b98b78 /drivers/media/usb/dvb-usb-v2/anysee.h
parente839776f9dfe1eda232755d5cab6eacc59208b4b (diff)
[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: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/anysee.h')
-rw-r--r--drivers/media/usb/dvb-usb-v2/anysee.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/anysee.h b/drivers/media/usb/dvb-usb-v2/anysee.h
index dc40dcf7c328..834dc120f90f 100644
--- a/drivers/media/usb/dvb-usb-v2/anysee.h
+++ b/drivers/media/usb/dvb-usb-v2/anysee.h
@@ -41,19 +41,18 @@
#ifdef CONFIG_DVB_USB_DEBUG
#define dprintk(var, level, args...) \
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) {\
int loop_; \
for (loop_ = 0; loop_ < l; loop_++) \
func("%02x ", b[loop_]); \
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_xfer(args...) dprintk(dvb_usb_anysee_debug, 0x02, args)