2008-01-15 Robert Millan <rmh@aybabtu.com>

* kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
        when pointers are 32-bit (but still do set it to one when they are
        64-bit).
This commit is contained in:
robertmh 2008-01-15 17:22:09 +00:00
parent 66a6580720
commit d1bc1b738c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-01-15 Robert Millan <rmh@aybabtu.com>
* kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
when pointers are 32-bit (but still do set it to one when they are
64-bit).
2008-01-15 Robert Millan <rmh@aybabtu.com>
* include/grub/ieee1275/ieee1275.h

View file

@ -768,7 +768,7 @@ grub_vsprintf (char *str, const char *fmt, va_list args)
case 'p':
write_str ("0x");
c = 'x';
longlongfmt = (sizeof (void *) == sizeof (long long));
longlongfmt |= (sizeof (void *) == sizeof (long long));
/* fall through */
case 'x':
case 'u':