summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-11-21 19:06:12 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-22 15:56:54 +0000
commit540b2adb6165a5a86bc575065445df63cf1516cf (patch)
treef8cd0e596d2f1485e0dbabb79043e6ce719e797b /src/console
parentd5e7a6d9c506be28308c3df6527eab2edca219bc (diff)
downloadcoreboot-540b2adb6165a5a86bc575065445df63cf1516cf.tar.xz
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 <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37113 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/vtxprintf.c12
1 files changed, 0 insertions, 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";