Messages in this thread | | | Date | Thu, 10 Oct 2002 13:54:44 +0200 (CEST) | From | Adrian Bunk <> | Subject | Re: [PATCH] USB and driver core changes for 2.5.41 |
| |
On Tue, 8 Oct 2002, Greg KH wrote:
>... > -#define ALOG(lineno,fmt,args...) printk(fmt,lineno,##args) > -#define LOG(fmt,args...) ALOG((__LINE__),KERN_INFO __FILE__":"__FUNCTION__"(%d):"fmt,##args) > +#define ALOG(fmt,args...) printk(fmt, ##args) > +#define LOG(fmt,args...) ALOG(KERN_INFO __FILE__ ":%s(%d):" fmt, __FUNCTION__, __LINE__, ##args) >... > - printk(KERN_ERR __FUNCTION__ ": usb_submit_urb ret %d\n", i); > + printk(KERN_ERR "%s: usb_submit_urb ret %d\n", __FUNCTION__, i); >...
Note that due to a bug in gcc this doesn't compile with 2.95. There's an extra space needed to fix the compilation with gcc 2.95:
__FUNCTION__, -> __FUNCTION__ , __LINE__, -> __LINE__ ,
cu Adrian
--
You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |