Skip to contentSkip to conversation

__FUNCTION__ issue (cpia)

PATCH New Aristeu Sergio Rozanski Filho 1 participant 1 message Sep 27, 2002 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 __FUNCTION__ issue (cpia)

Signature · 2 lines
-- 
aris
drivers/media/video/cpia.h +4 -4
@@ -378,12 +378,12 @@
 /* ErrorCode */
 #define ERROR_FLICKER_BELOW_MIN_EXP     0x01 /*flicker exposure got below minimum exposure */
 
-#define ALOG(lineno,fmt,args...) printk(fmt,lineno,##args)
-#define LOG(fmt,args...) ALOG((__LINE__),KERN_INFO __FILE__":"__FUNCTION__"(%d):"fmt,##args)
+#define ALOG(lineno,func,fmt,args...) printk(fmt,func,lineno,##args)
+#define LOG(fmt,args...) ALOG((__LINE__),__FUNCTION__,KERN_INFO __FILE__":%s(%d):"fmt,##args)
 
 #ifdef _CPIA_DEBUG_
-#define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)
-#define DBG(fmt,args...) ADBG((__LINE__),KERN_DEBUG __FILE__"(%ld):"__FUNCTION__"(%d):"fmt,##args)
+#define ADBG(lineno,func,fmt,args...) printk(fmt, jiffies, func, lineno, ##args)
+#define DBG(fmt,args...) ADBG((__LINE__),__FUNCTION__, KERN_DEBUG __FILE__"(%ld):%s(%d):"fmt,##args)
 #else
 #define DBG(fmn,args...) do {} while(0)
 #endif
drivers/media/video/cpia_usb.c +1 -1
@@ -167,7 +167,7 @@
 	/* resubmit */
 	urb->dev = ucpia->dev;
 	if ((i = usb_submit_urb(urb, GFP_ATOMIC)) != 0)
-		printk(KERN_ERR __FUNCTION__ ": usb_submit_urb ret %d\n", i);
+		printk(KERN_ERR "%s: usb_submit_urb ret %d\n", __FUNCTION__, i);
 }
 
 static int cpia_usb_open(void *privdata)