Go to the documentation of this file.
25 #include <linux/videodev2.h>
28 #include <linux/device.h>
29 #include <linux/list.h>
31 #include <linux/time.h>
32 #include <linux/wait.h>
33 #include <linux/types.h>
37 #include <linux/string.h>
38 #include <linux/stddef.h>
170 # define DBG(level, fmt, args...) \
172 if (debug >= (level)) { \
174 dev_err(&cam->usbdev->dev, fmt "\n", ## args); \
175 else if ((level) == 2) \
176 dev_info(&cam->usbdev->dev, fmt "\n", ## args); \
177 else if ((level) >= 3) \
178 dev_info(&cam->usbdev->dev, "[%s:%d] " fmt "\n", \
179 __func__, __LINE__ , ## args); \
182 # define V4LDBG(level, name, cmd) \
184 if (debug >= (level)) \
185 v4l_printk_ioctl(name, cmd); \
187 # define KDBG(level, fmt, args...) \
189 if (debug >= (level)) { \
190 if ((level) == 1 || (level) == 2) \
191 pr_info("sn9c102: " fmt "\n", ## args); \
192 else if ((level) == 3) \
193 pr_debug("sn9c102: [%s:%d] " fmt "\n", \
194 __func__, __LINE__ , ## args); \
198 # define DBG(level, fmt, args...) do {;} while(0)
199 # define V4LDBG(level, name, cmd) do {;} while(0)
200 # define KDBG(level, fmt, args...) do {;} while(0)
204 #define PDBG(fmt, args...) \
205 dev_info(&cam->usbdev->dev, "[%s:%s:%d] " fmt "\n", __FILE__, __func__, \
209 #define PDBGG(fmt, args...) do {;} while(0)