Re: [PATCH] USB and driver core changes for 2.5.41

From: Adrian Bunk (bunk@fs.tum.de)
Date: Thu Oct 10 2002 - 06:54:44 EST


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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:36 EST