svn commit: r368623 - head/stand/common
Jessica Clarke
jrtc27 at FreeBSD.org
Mon Dec 14 00:46:24 UTC 2020
Author: jrtc27
Date: Mon Dec 14 00:46:24 2020
New Revision: 368623
URL: https://svnweb.freebsd.org/changeset/base/368623
Log:
loader: Print autoboot countdown immediately, not at 9
For the first second otime and ntime are equal so no message gets
printed. Instead we should print the countdown right from the start,
although we do it at the end of the first iteration so that if a key has
already been pressed then the message is suppressed.
Reviewed by: imp
Approved by: imp
Differential Revision: https://reviews.freebsd.org/D26935
Modified:
head/stand/common/boot.c
Modified: head/stand/common/boot.c
==============================================================================
--- head/stand/common/boot.c Sun Dec 13 23:51:51 2020 (r368622)
+++ head/stand/common/boot.c Mon Dec 14 00:46:24 2020 (r368623)
@@ -202,8 +202,9 @@ autoboot(int timeout, char *prompt)
}
if (timeout >= 0) {
- otime = time(NULL);
- when = otime + timeout; /* when to boot */
+ otime = -1;
+ ntime = time(NULL);
+ when = ntime + timeout; /* when to boot */
yes = 0;
More information about the svn-src-head
mailing list