On 11/22/2011 02:49 AM, Andreas Bießmann wrote: > Well, you can do it that way but I guess there are several places where > printf() will be needed by some drivers in SPL. Therefore I think it is > better to provide printf() for SPL than to ifdef out all the printf's. > > So how about providing an empty > > #if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT) > #define printf(x) > #endif > > somewhere in the SPL code?
Use an inline function instead so the arguments are consumed and it doesn't cause unused-variable warnings. -Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot