summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/dvb-usb/ce6230.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-06-13 23:03:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-04 07:56:32 -0300
commitab84f182f0cd49f9fe3fda90eb19d98d9e226933 (patch)
treeacbe14627535f5d53457b7cf3a1fc4086538ead3 /drivers/media/dvb/dvb-usb/ce6230.h
parent877e0aa790727eb7ceae189a721798424d820a0c (diff)
[media] ce6230: convert to new DVB USB
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/ce6230.h')
-rw-r--r--drivers/media/dvb/dvb-usb/ce6230.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/ce6230.h b/drivers/media/dvb/dvb-usb/ce6230.h
index 97c42482ccb3..7c219539fbd8 100644
--- a/drivers/media/dvb/dvb-usb/ce6230.h
+++ b/drivers/media/dvb/dvb-usb/ce6230.h
@@ -23,7 +23,23 @@
#define _DVB_USB_CE6230_H_
#define DVB_USB_LOG_PREFIX "ce6230"
-#include "dvb-usb.h"
+#include "dvb_usb.h"
+
+#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 DVB_USB_DEBUG_STATUS " (debugging is not enabled)"
+#endif
+
+#undef err
+#define err(format, arg...) printk(KERN_ERR DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
+#undef info
+#define info(format, arg...) printk(KERN_INFO DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
+#undef warn
+#define warn(format, arg...) printk(KERN_WARNING DVB_USB_LOG_PREFIX ": " format "\n" , ## arg)
#define deb_info(args...) dprintk(dvb_usb_ce6230_debug, 0x01, args)
#define deb_rc(args...) dprintk(dvb_usb_ce6230_debug, 0x02, args)