Skip site navigation (1)Skip section navigation (2)
Date:      20 May 1999 01:34:25 -0400
From:      rme@nightfly.apk.net (R. Matthew Emerson)
To:        freebsd-hackers@freebsd.org
Subject:   trivial patch for boot.c
Message-ID:  <87pv3wxq1q.fsf@nightfly.apk.net>

next in thread | raw e-mail | index | archive | help
I had to reboot a few times today, and got bugged by the boot
countdown timer telling me it was going to boot in 1 seconds.

The change to src/sys/boot/common/boot.c is trivial, but I'm always
impressed when a program gets these details right.

-matt


*** boot.c.orig	Thu May 20 01:11:00 1999
--- boot.c	Thu May 20 01:12:16 1999
***************
*** 203,209 ****
  	    break;
  	}
  	if (ntime != otime) {
! 	    printf("\rBooting [%s] in %d seconds... ", getbootfile(0), (int)(when - ntime));
  	    otime = ntime;
  	    cr = 1;
  	}
--- 203,209 ----
  	    break;
  	}
  	if (ntime != otime) {
! 	    printf("\rBooting [%s] in %d second%s... ", getbootfile(0), (int)(when - ntime), (when-ntime)==1?"":"s");
  	    otime = ntime;
  	    cr = 1;
  	}


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87pv3wxq1q.fsf>