From owner-freebsd-hackers Wed May 19 22:32:30 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from nightfly.apk.net (nightfly.apk.net [207.54.149.151]) by hub.freebsd.org (Postfix) with SMTP id 9186415266 for ; Wed, 19 May 1999 22:32:17 -0700 (PDT) (envelope-from rme@nightfly.apk.net) Received: (qmail 277 invoked by uid 1000); 20 May 1999 05:34:25 -0000 To: freebsd-hackers@freebsd.org Subject: trivial patch for boot.c X-Attribution: rme From: rme@nightfly.apk.net (R. Matthew Emerson) Date: 20 May 1999 01:34:25 -0400 Message-ID: <87pv3wxq1q.fsf@nightfly.apk.net> Lines: 28 X-Mailer: Gnus v5.5/Emacs 20.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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