* stage2/char_io.c (convert_to_ascii): Remove "%b" support.
It's non-standard and is not used anymore. (grub_printf): Likewise.
This commit is contained in:
parent
3fa2fbb8bd
commit
6355ac9d94
2 changed files with 8 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-05-03 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* stage2/char_io.c (convert_to_ascii): Remove "%b" support.
|
||||
It's non-standard and is not used anymore.
|
||||
(grub_printf): Likewise.
|
||||
|
||||
2004-04-29 Robert Millan <robertmh@gnu.org>
|
||||
|
||||
From Yann Dirson <dirson@debian.org>:
|
||||
|
|
|
@ -107,7 +107,7 @@ convert_to_ascii (char *buf, int c,...)
|
|||
char *ptr = buf;
|
||||
|
||||
#ifndef STAGE1_5
|
||||
if (c == 'x' || c == 'X' || c == 'b')
|
||||
if (c == 'x' || c == 'X')
|
||||
mult = 16;
|
||||
|
||||
if ((num & 0x80000000uL) && c == 'd')
|
||||
|
@ -154,7 +154,6 @@ grub_printf (const char *format,...)
|
|||
{
|
||||
int *dataptr = (int *) &format;
|
||||
char c, str[16];
|
||||
unsigned long mask = 0xFFFFFFFF;
|
||||
|
||||
dataptr++;
|
||||
|
||||
|
@ -166,16 +165,12 @@ grub_printf (const char *format,...)
|
|||
switch (c = *(format++))
|
||||
{
|
||||
#ifndef STAGE1_5
|
||||
case 'b':
|
||||
mask = 0xFF;
|
||||
/* Fall down intentionally! */
|
||||
case 'd':
|
||||
case 'x':
|
||||
case 'X':
|
||||
#endif
|
||||
case 'u':
|
||||
*convert_to_ascii (str, c, *((unsigned long *) dataptr++) & mask)
|
||||
= 0;
|
||||
*convert_to_ascii (str, c, *((unsigned long *) dataptr++)) = 0;
|
||||
grub_putstr (str);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue