|
@@ -45,8 +45,10 @@ static int i2c_debug;
|
|
|
module_param (i2c_debug, int, 0644); // debug_i2c_usb mode of the device driver
|
|
|
MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
|
|
|
|
|
|
-#define PDEBUG(level, fmt, args...) \
|
|
|
- if (i2c_debug & (level)) info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ , ## args)
|
|
|
+#define PDEBUG(level, fmt, args...) { \
|
|
|
+ if (i2c_debug & (level)) \
|
|
|
+ info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \
|
|
|
+ }
|
|
|
|
|
|
static int usbvision_i2c_write(struct usb_usbvision *usbvision, unsigned char addr, char *buf,
|
|
|
short len);
|