diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2008-04-04 23:00:57 +0200 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2008-04-04 23:00:57 +0200 |
commit | ac057ef9ae37eb5d78117f191f48bf532f7a2435 (patch) | |
tree | 9f4267374f78656298a637a066f9664981ce8c9c /linux/drivers/media/video | |
parent | 25f8baaeafbbaa1aa8b1359d0f28dabb41c25233 (diff) | |
download | mediapointer-dvb-s2-ac057ef9ae37eb5d78117f191f48bf532f7a2435.tar.gz mediapointer-dvb-s2-ac057ef9ae37eb5d78117f191f48bf532f7a2435.tar.bz2 |
usbvision: rename __PRETTY_FUNCTION__ occurrences
From: Thierry MERLE <thierry.merle@free.fr>
__PRETTY_FUNCTION__ has no sense in C lang context. Rename it as __func__
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-core.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-i2c.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-video.c | 6 |
3 files changed, 11 insertions, 7 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-core.c b/linux/drivers/media/video/usbvision/usbvision-core.c index 7ecb1889f..ce9348a07 100644 --- a/linux/drivers/media/video/usbvision/usbvision-core.c +++ b/linux/drivers/media/video/usbvision/usbvision-core.c @@ -90,8 +90,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 diff --git a/linux/drivers/media/video/usbvision/usbvision-i2c.c b/linux/drivers/media/video/usbvision/usbvision-i2c.c index 15c54121d..67efd7821 100644 --- a/linux/drivers/media/video/usbvision/usbvision-i2c.c +++ b/linux/drivers/media/video/usbvision/usbvision-i2c.c @@ -48,8 +48,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); diff --git a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c index 4de6ac181..96155fd92 100644 --- a/linux/drivers/media/video/usbvision/usbvision-video.c +++ b/linux/drivers/media/video/usbvision/usbvision-video.c @@ -103,10 +103,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 |