Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92595
b: refs/heads/master
c: df18c31
h: refs/heads/master
i:
  92593: 87254fa
  92591: daaffd5
v: v3
  • Loading branch information
Thierry MERLE authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 20175f2 commit 6c7dbbb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2db42dd4eb53b86a40b96b0b12a7b2d12377bdd
refs/heads/master: df18c3196a1ec1db7a20997d3246a5a8cf535a77
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/usbvision/usbvision-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ MODULE_PARM_DESC(adjust_Y_Offset, "adjust Y offset display [core]");


#ifdef USBVISION_DEBUG
#define PDEBUG(level, fmt, args...) \
if (core_debug & (level)) info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ , ## args)
#define PDEBUG(level, fmt, args...) { \
if (core_debug & (level)) \
info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \
}
#else
#define PDEBUG(level, fmt, args...) do {} while(0)
#endif
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/usbvision/usbvision-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/usbvision/usbvision-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ USBVISION_DRIVER_VERSION_PATCHLEVEL)


#ifdef USBVISION_DEBUG
#define PDEBUG(level, fmt, args...) \
#define PDEBUG(level, fmt, args...) { \
if (video_debug & (level)) \
info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ ,\
## args)
info("[%s:%d] " fmt, __func__, __LINE__ , ## args); \
}
#else
#define PDEBUG(level, fmt, args...) do {} while(0)
#endif
Expand Down

0 comments on commit 6c7dbbb

Please sign in to comment.