]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7503): usbvision: rename __PRETTY_FUNCTION__ occurrences
authorThierry MERLE <thierry.merle@free.fr>
Sat, 5 Apr 2008 00:00:57 +0000 (21:00 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:58 +0000 (14:07 -0300)
__PRETTY_FUNCTION__ has no sense in C lang context. Rename it as __func__

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/usbvision/usbvision-core.c
drivers/media/video/usbvision/usbvision-i2c.c
drivers/media/video/usbvision/usbvision-video.c

index e518d8a3564385b63ed02233a3d5cede03e9caa6..a9c5e5adba3afb704c300df72bbbdfe31a2928b8 100644 (file)
@@ -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
index a7ed6f21f1195be75bcde536a4afa7c27a45e982..e2274d77ea295a532befda800eec9ab53e14eb0c 100644 (file)
@@ -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);
index 13f378c4439e0e65145afdf6f3674fba445f7ab2..d97261ab430f9f3c772b9ef27f18558a2da5f5fe 100644 (file)
@@ -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