From: Piotr Dymacz Date: Sun, 9 Jul 2017 15:18:51 +0000 (+0200) Subject: Always use printf_wrn() for printing warnings X-Git-Url: https://git.librecmc.org/?p=oweals%2Fu-boot_mod.git;a=commitdiff_plain;h=15151115467b6d72124f655931260811b893010b Always use printf_wrn() for printing warnings --- diff --git a/u-boot/board/ar7240/common/common.c b/u-boot/board/ar7240/common/common.c index 1d20173..1ae64b1 100644 --- a/u-boot/board/ar7240/common/common.c +++ b/u-boot/board/ar7240/common/common.c @@ -107,7 +107,7 @@ void print_board_info(void) /* Show warning if last reboot was caused by SOC watchdog */ if (last_reset_wdt()) - puts("** Warning: reset caused by watchdog!\n\n"); + printf_wrn("reset caused by watchdog!\n\n"); /* Board name */ printf("%" ALIGN_SIZE "s %s\n", diff --git a/u-boot/common/main.c b/u-boot/common/main.c index c550812..888a9f3 100644 --- a/u-boot/common/main.c +++ b/u-boot/common/main.c @@ -205,8 +205,8 @@ void main_loop(void) /* Do we have recovery script in env var at all? */ c = getenv("recovery"); if (c == NULL) { - puts("** Warning: recovery script is missing\n"); - puts(" in env, use 'defenv' to reset env\n\n"); + printf_wrn("recovery script is missing\n" + " in env, use 'defenv' to reset env\n\n"); } else { /* * Always clear values of variables used in recovery