mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
* 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:
1 parent
3fa2fbb8bd
commit
6355ac9d94
2 files changed
+8
-7
No files matched your search
@@ -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>:
|
||||
|
||||
+2
-7
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user