* [patch] __FUNCTION__ issue (cpia)
@ 2002-09-27 17:18 Aristeu Sergio Rozanski Filho
0 siblings, 0 replies; only message in thread
From: Aristeu Sergio Rozanski Filho @ 2002-09-27 17:18 UTC (permalink / raw)
To: sbertin, Peter_Pregler, jerdfelt; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
--
aris
[-- Attachment #2: cpia.patch --]
[-- Type: text/plain, Size: 1525 bytes --]
--- linux-2.5.38-vanilla/drivers/media/video/cpia.h 2002-09-22 01:25:18.000000000 -0300
+++ linux-2.5.38/drivers/media/video/cpia.h 2002-09-27 10:14:28.000000000 -0300
@@ -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
--- linux-2.5.38-vanilla/drivers/media/video/cpia_usb.c 2002-09-22 01:24:58.000000000 -0300
+++ linux-2.5.38/drivers/media/video/cpia_usb.c 2002-09-27 10:22:24.000000000 -0300
@@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-27 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-27 17:18 [patch] __FUNCTION__ issue (cpia) Aristeu Sergio Rozanski Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).