Re: Linux 2.4.20-pre4-ac1 (this time regarding 2.5.31)

Thunder from the hill
2002-08-23T14:25:25Z

Hi,

On Sat, 24 Aug 2002, Eyal Lebedinsky wrote:
> linux/drivers/usb/brlvger.c compile error
>
> You would think that gcc, having had the same problem for a while,
> would have smarted up by now. And they say computers are our
> future...

Can't believe! In 2.5 we still use concatenation w/__FUNCTION__.

#define dbgprint(args...) \
({ printk(KERN_DEBUG "Voyager: " __FUNCTION__ ": " args); \
printk("\n"); })

Shall we fix it?

#define dbgprint(args...) \
printk(KERN_DEBUG "Voyager: %s: " args "\n", __FUNCTION__ );

should cut it, but

#define dbgprint(fmt, args...) \
printk(KERN_DEBUG "Voyager: %s: " fmt "\n", __FUNCTION__ , args);

might be better.

Thunder
--
--./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
--/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..-
.- -/---/--/---/.-./.-./---/.--/.-.-.-
--./.-/-.../.-./.././.-../.-.-.-