mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-03 11:41:38 +02:00
spl: Refactor controls for console output
The expression in boot_from_devices() is fairly long and appears to be an artefact from before we could easily call printf(...) and have the call be nop'd out. So update it to just check CONFIG_SILENT_CONSOLE. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
2b8d2ccdc9
commit
ec7e8dad26
@ -703,9 +703,7 @@ static int boot_from_devices(struct spl_image_info *spl_image,
|
|||||||
if (CONFIG_IS_ENABLED(SHOW_ERRORS))
|
if (CONFIG_IS_ENABLED(SHOW_ERRORS))
|
||||||
ret = -ENXIO;
|
ret = -ENXIO;
|
||||||
loader = spl_ll_find_loader(bootdev);
|
loader = spl_ll_find_loader(bootdev);
|
||||||
if (CONFIG_IS_ENABLED(SERIAL) &&
|
if (!IS_ENABLED(CONFIG_SILENT_CONSOLE)) {
|
||||||
CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) &&
|
|
||||||
!IS_ENABLED(CONFIG_SILENT_CONSOLE)) {
|
|
||||||
if (loader)
|
if (loader)
|
||||||
printf("Trying to boot from %s\n",
|
printf("Trying to boot from %s\n",
|
||||||
spl_loader_name(loader));
|
spl_loader_name(loader));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user