Always use printf_wrn() for printing warnings
authorPiotr Dymacz <pepe2k@gmail.com>
Sun, 9 Jul 2017 15:18:51 +0000 (17:18 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Sun, 9 Jul 2017 15:18:51 +0000 (17:18 +0200)
u-boot/board/ar7240/common/common.c
u-boot/common/main.c

index 1d20173dc92b1cbb196903e9f080d7bbec8cffc2..1ae64b120b1a4a54a326e5bfbbc7383fa4815cfb 100644 (file)
@@ -107,7 +107,7 @@ void print_board_info(void)
 
        /* Show warning if last reboot was caused by SOC watchdog */
        if (last_reset_wdt())
 
        /* 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",
 
        /* Board name */
        printf("%" ALIGN_SIZE "s %s\n",
index c550812f570fef5f68205bcb4eb308e7ba9336d5..888a9f30637bd31bdc9cb6956af577532960b845 100644 (file)
@@ -205,8 +205,8 @@ void main_loop(void)
                /* Do we have recovery script in env var at all? */
                c = getenv("recovery");
                if (c == NULL) {
                /* 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
                } else {
                        /*
                         * Always clear values of variables used in recovery