Ronald G Minnich rminnich@lanl.gov writes:
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'?
Because I believe all __FUNCTION__ is guaranteed to be by the standard is a string pointer. And I think it not being that way caused someone some pain in gcc.
Just make it: printk_debug("%s\n", __FUNCTION__);
Eric