diff options
author | David Zang <davidzangcs@gmail.com> | 2025-07-06 19:22:01 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-07-14 15:16:53 -0600 |
commit | 5f70be08b015a5dc2296ea0073ecc8165fc48588 (patch) | |
tree | 18282278f56d3e9a6924b1fa1b77a32327982266 | |
parent | b7d70fe68b9ca8f04ba3917d71ec4e84058b9948 (diff) |
Fix autoboot countdown printing wrong
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>
-rw-r--r-- | common/autoboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/autoboot.c b/common/autoboot.c index 0a254498d40..e39f4a32f95 100644 --- a/common/autoboot.c +++ b/common/autoboot.c @@ -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'); |