arm: printf() is not available in some SPL configurations

This patch avoids build breakage for SPLs that do not support printf.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Tom Rini <trini@ti.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
This commit is contained in:
Christian Riesch 2011-11-29 00:11:03 +00:00 committed by Albert ARIBAUD
parent f7264c36cd
commit 5cb939fb04

View file

@ -13,7 +13,9 @@
int raise (int signum) int raise (int signum)
{ {
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
printf("raise: Signal # %d caught\n", signum); printf("raise: Signal # %d caught\n", signum);
#endif
return 0; return 0;
} }