lkml.org 
[lkml]   [2002]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.064 / U:1.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site