2.5.33 cpia.c __FUNCTION__ compile fix
PATCH 1/1 2.5.33 cpia.c __FUNCTION__ compile fix
(attached, since mozilla-mail mangles whitespace in copy-paste
from gnome-terminal :/ )
Compiles for me (TM).
Ciao,
--alessandro
"everything dies, baby that's a fact
but maybe everything that dies someday comes back"
(Bruce Springsteen, "Atlantic City")
media/video/cpia_usb.c renamed from media/video/cpia_usb.c-2.5.33 +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)
media/video/cpia.h renamed from media/video/cpia.h-2.5.33 +1 -1
@@ -379,7 +379,7 @@#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 LOG(fmt,args...) ALOG((__LINE__),KERN_INFO __FILE__":%s(%d):"fmt, __FUNCTION__, ##args)#ifdef _CPIA_DEBUG_ #define ADBG(lineno,fmt,args...) printk(fmt, jiffies, lineno, ##args)