@@ -29,6 +29,12 @@
#include <media/v4l2-common.h>
#include <media/tuner.h>
+#define dprintk(dev, level, fmt, arg...) do { \
+ if (tm6000_debug & level) \
+ printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \
+ dev->name, __FUNCTION__, ##arg); \
+ } while (0)
+
#define USB_TIMEOUT 5*HZ /* ms */
int tm6000_read_write_usb (struct tm6000_core *dev, u8 req_type, u8 req,
@@ -30,6 +30,14 @@
#include "tuner-xc2028.h"
#include "xc5000.h"
+#undef dprintk
+
+#define dprintk(dev, level, fmt, arg...) do { \
+ if (debug >= level) \
+ printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \
+ dev->name, __FUNCTION__, ##arg); \
+ } while (0)
+
static void inline print_err_status (struct tm6000_core *dev,
int packet, int status)
{
@@ -42,6 +42,12 @@
#include "tm6000-regs.h"
#include "tm6000.h"
+#define dprintk(dev, level, fmt, arg...) do { \
+ if (tm6000_debug & level) \
+ printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \
+ dev->name, __FUNCTION__, ##arg); \
+ } while (0)
+
#define BUFFER_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */
/* Limits minimum and default number of buffers */
@@ -316,13 +316,6 @@ int tm6000_queue_init(struct tm6000_core *dev);
/* Debug stuff */
-extern int tm6000_debug;
-
-#define dprintk(dev, level, fmt, arg...) do {\
- if (tm6000_debug & level) \
- printk(KERN_INFO "(%lu) %s %s :"fmt, jiffies, \
- dev->name, __FUNCTION__ , ##arg); } while (0)
-
#define V4L2_DEBUG_REG 0x0004
#define V4L2_DEBUG_I2C 0x0008
#define V4L2_DEBUG_QUEUE 0x0010