linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.34: IR __FUNCTION__ breakage
@ 2002-09-12 19:54 Bob_Tracy
  2002-09-12 20:16 ` Thunder from the hill
  0 siblings, 1 reply; 11+ messages in thread
From: Bob_Tracy @ 2002-09-12 19:54 UTC (permalink / raw)
  To: dag; +Cc: linux-kernel

I've been painstakingly going through all the IR code and fixing up
the __FUNCTION__ breakage.  One of the not obvious patches is for
linux/net/irda/irnet/irnet.h, where string concatenation was fully
taken advantage of :-).

The problem lies in statements such as

#define DERROR(dbg, args...) \
	{if(DEBUG_##dbg) \
		printk(KERN_INFO "irnet: " __FUNCTION__ "(): " args);}

where you really want to avoid having any format strings because
"args" could legally have one (and probably will).  Under the
circumstances, one option might be something like

define DERROR(dbg, args...) \
	{if(DEBUG_##dbg){\
		printk(KERN_INFO "irnet: %s(): ", __FUNCTION__);\
		printk(KERN_INFO args);}}

which strikes me as not quite what the author intended, although it
should work.  Better ideas are welcome, and if a consensus is reached,
I'll be happy to submit the full IR __FUNCTION__ patch set against
2.5.34 for inclusion in a later kernel version.

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-09-13 20:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12 19:54 2.5.34: IR __FUNCTION__ breakage Bob_Tracy
2002-09-12 20:16 ` Thunder from the hill
2002-09-12 21:09   ` Bob_Tracy
2002-09-13 16:01   ` Andreas Steinmetz
2002-09-13 16:14     ` Thunder from the hill
2002-09-13 17:46       ` Ahmed Masud
2002-09-13 18:01         ` Andreas Steinmetz
2002-09-13 20:11         ` Thunder from the hill
2002-09-13 20:12     ` Neil Booth
2002-09-13 20:30       ` Andreas Steinmetz
2002-09-13 20:53         ` Thunder from the hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).