gcc, ever improving ... :-)

Dave Jones davej at suse.de
Thu Oct 17 16:48:01 CEST 2002


On Thu, Oct 17, 2002 at 02:45:19PM -0600, Ronald G Minnich wrote:
 > 	printk_debug(__FUNCTION__ "\n");
 > 
 > You get the message:
 > 
 > /home/rminnich/src/freebios/src/arch/i386/lib/hardwaremain.c:139: warning:
 > concatenation of string literals with __FUNCTION__ is deprecated
 > 
 > OK, I use this technique quite a bit. Anybody know why this handy little
 > trick is 'deprecated'?

Simple fix :

    printk_debug("%s\n", __FUNCTION__);

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs



More information about the coreboot mailing list