2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>

* netboot/misc.c (twiddle): Go back to the bar progress, copied
	from etherboot-5.0.5/src/misc.c. Execute the code only if DEBUG
	is true.
This commit is contained in:
okuji 2002-02-04 23:01:38 +00:00
parent 205b46d5bc
commit 30817e1ce8
3 changed files with 28 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
* netboot/misc.c (twiddle): Go back to the bar progress, copied
from etherboot-5.0.5/src/misc.c. Execute the code only if DEBUG
is true.
2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/builtins.c (displaymem_func): Use hex digits to display

7
NEWS
View file

@ -1,5 +1,12 @@
NEWS - list of user-visible changes between releases of GRUB
New in 0.92:
* The command "displaymem" uses only hex digits for consistency.
* The netboot code go backs to the progress bars instead of dots, for the
notation of data transfers. And, that is displayed only in debug mode,
that is to say, nothing is displayed by default. Remember that you can
turn on debug mode via the command "debug".
New in 0.91 - 2002-01-21:
* Support for Linux DAC960 is added.
* JFS and XFS support is added.

View file

@ -1,6 +1,6 @@
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
* Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -34,7 +34,20 @@ sleep (int secs)
void
twiddle (void)
{
grub_putchar('.');
static unsigned long lastticks = 0;
static int count = 0;
static const char tiddles[]="-\\|/";
unsigned long ticks;
if (debug)
{
if ((ticks = currticks ()) == lastticks)
return;
lastticks = ticks;
grub_putchar (tiddles[(count++) & 3]);
grub_putchar ('\b');
}
}
/* Because Etherboot uses its own formats for the printf family,