]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
spl: Change printf to puts for "Unsupported boot-device"
authorStefan Roese <sr@denx.de>
Tue, 27 Jan 2015 15:45:09 +0000 (16:45 +0100)
committerTom Rini <trini@ti.com>
Wed, 28 Jan 2015 21:58:01 +0000 (16:58 -0500)
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 <sr@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
common/spl/spl.c

index 1826c47a99c464bd0023f3c173cab788de49acb0..daaeb507c467b14cf0f80ecaab46e48064e58672 100644 (file)
@@ -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();
        }