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>
This commit is contained in:
David Zang
2025-07-06 19:22:01 -05:00
committed by Tom Rini
parent b7d70fe68b
commit 5f70be08b0

View 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');