From: Stefan Roese Date: Tue, 27 Jan 2015 15:45:09 +0000 (+0100) Subject: spl: Change printf to puts for "Unsupported boot-device" X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=e860d012c407d6e8baa9cbf7789c201f675e5bee;p=u-boot.git spl: Change printf to puts for "Unsupported boot-device" Microblaze currently doesn't use printf in SPL. So this one line was the only reference to it and resulted in the printf functionality to be pulled in. Exceeding the 4k size limit. Lets change the printf back to puts so that Microblaze is fixed again. The only drawback is that the detected boot-device number will not be printed. But this message alone should be helpful enough to get an idea where the boot process is broken. Signed-off-by: Stefan Roese Cc: Tom Rini Cc: Michal Simek Acked-by: Michal Simek --- diff --git a/common/spl/spl.c b/common/spl/spl.c index 1826c47a99..daaeb507c4 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -231,7 +231,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2) #endif default: #if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) - printf("SPL: Unsupported Boot Device %d\n", boot_device); + puts("SPL: Unsupported Boot Device!\n"); #endif hang(); }