From 540b2adb6165a5a86bc575065445df63cf1516cf Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 21 Nov 2019 19:06:12 +0100 Subject: src/console: Bring back support for printf'ing 64bit ints commit f96d9051c2 (Remove MIPS Architecture) accidentally enabled a MIPS special case to not support 64bit integers in printf for all platforms. This removes that MIPS-only special case entirely. Change-Id: I5245bb32b45f9bd37bd012a7b15a64fba24a4cb7 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/37113 Tested-by: build bot (Jenkins) Reviewed-by: Jacob Garber Reviewed-by: Julius Werner Reviewed-by: Angel Pons --- src/console/vtxprintf.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index b9e43692d8..104f4eaeb3 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -36,20 +36,8 @@ static int number(void (*tx_byte)(unsigned char byte, void *data), const char *digits = "0123456789abcdef"; int i; int count = 0; -#ifdef SUPPORT_64BIT_INTS unsigned long long num = inum; long long snum = num; -#else - unsigned long num = (unsigned long)inum; - long snum = (long)num; - - if (num != inum) { - /* Alert user to an incorrect result by printing #^!. */ - call_tx('#'); - call_tx('^'); - call_tx('!'); - } -#endif if (type & LARGE) digits = "0123456789ABCDEF"; -- cgit v1.2.3