[U-Boot] [PATCH v3] arm: printf() is not available in some SPL configurations
Scott Wood
scottwood at freescale.com
Tue Nov 22 21:20:33 CET 2011
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
More information about the U-Boot
mailing list