]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Fix autoboot countdown printing wrong
authorDavid Zang <davidzangcs@gmail.com>
Mon, 7 Jul 2025 00:22:01 +0000 (19:22 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 14 Jul 2025 21:16:53 +0000 (15:16 -0600)
Originally when bootdelay >99, the countdown breaks. Setting bootdelay
at 101 or bigger will trigger this error.

Signed-off-by: David Zang <davidzangcs@gmail.com>
common/autoboot.c

index 0a254498d4005697ea2cf7099558c0e27b551308..e39f4a32f9572602a99ea79ee5a737f319ee11c2 100644 (file)
@@ -410,7 +410,7 @@ static int abortboot_single_key(int bootdelay)
                        udelay(10000);
                } while (!abort && get_timer(ts) < 1000);
 
-               printf("\b\b\b%2d ", bootdelay);
+               printf("\rHit any key to stop autoboot: %1d\033[K", bootdelay);
        }
 
        putc('\n');