[U-Boot] [PATCH 2/2] board_f: prevent misleading "Watchdog enabled" output

Anatolij Gustschin agust at denx.de
Mon Jun 13 14:24:24 CEST 2016


Output the "Watchdog enabled" message only if hw_watchdog_init()
call really happened.

Signed-off-by: Anatolij Gustschin <agust at denx.de>
---
 common/board_f.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/board_f.c b/common/board_f.c
index 0e2e6bc..9f6e4cc 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -120,8 +120,8 @@ static int init_func_watchdog_init(void)
 	defined(CONFIG_DESIGNWARE_WATCHDOG) || \
 	defined(CONFIG_IMX_WATCHDOG))
 	hw_watchdog_init();
-# endif
 	puts("       Watchdog enabled\n");
+# endif
 	WATCHDOG_RESET();
 
 	return 0;
-- 
1.7.9.5



More information about the U-Boot mailing list