console: Remove support for printing extra bases
vtxprintf() can only print numbers in base 8, 10, and 16, so the extra letters in the alphabet aren't needed. Change-Id: I6a51c13f3298a597e801440f86bf698bdd8c736a Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34028 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
7b2a88901f
commit
b19946cc62
|
@ -38,7 +38,7 @@ static int number(void (*tx_byte)(unsigned char byte, void *data),
|
|||
void *data)
|
||||
{
|
||||
char c, sign, tmp[66];
|
||||
const char *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
const char *digits = "0123456789abcdef";
|
||||
int i;
|
||||
int count = 0;
|
||||
#ifdef SUPPORT_64BIT_INTS
|
||||
|
@ -57,11 +57,9 @@ static int number(void (*tx_byte)(unsigned char byte, void *data),
|
|||
#endif
|
||||
|
||||
if (type & LARGE)
|
||||
digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
digits = "0123456789ABCDEF";
|
||||
if (type & LEFT)
|
||||
type &= ~ZEROPAD;
|
||||
if (base < 2 || base > 36)
|
||||
return 0;
|
||||
c = (type & ZEROPAD) ? '0' : ' ';
|
||||
sign = 0;
|
||||
if (type & SIGN) {
|
||||
|
|
Loading…
Reference in New Issue