]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Avoid printing boot device if silent console is enabled
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 3 Sep 2020 17:25:15 +0000 (14:25 -0300)
committerTom Rini <trini@konsulko.com>
Wed, 14 Oct 2020 15:16:34 +0000 (11:16 -0400)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
common/spl/spl.c

index 4840d1d36707bbea20d2ff0214942d2f77c14b75..63c48fbf33df75a48ce3e4d52c1810761e411711 100644 (file)
@@ -552,7 +552,9 @@ static int boot_from_devices(struct spl_image_info *spl_image,
                struct spl_image_loader *loader;
 
                loader = spl_ll_find_loader(spl_boot_list[i]);
-#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
+#if defined(CONFIG_SPL_SERIAL_SUPPORT) \
+    && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)    \
+    && !defined(CONFIG_SILENT_CONSOLE)
                if (loader)
                        printf("Trying to boot from %s\n", loader->name);
                else