Date: Mon, 14 Dec 2020 00:46:24 +0000 (UTC) From: Jessica Clarke <jrtc27@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r368623 - head/stand/common Message-ID: <202012140046.0BE0kOnC041296@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012140046.0BE0kOnC041296>