From 0ce98191e992f427d645f26c8479b51d7b5e42e5 Mon Sep 17 00:00:00 2001 From: Nava kishore Manne Date: Wed, 1 Jul 2015 11:41:06 +0530 Subject: [PATCH] Revert "bsp: a53: added support for 64bit print in xil_printf" This reverts commit 546c719e6729eb90daea3027269373542b198668. --- lib/bsp/standalone/src/cortexa53/64bit/xil_printf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/bsp/standalone/src/cortexa53/64bit/xil_printf.c b/lib/bsp/standalone/src/cortexa53/64bit/xil_printf.c index 61d15b15..8d13cc14 100644 --- a/lib/bsp/standalone/src/cortexa53/64bit/xil_printf.c +++ b/lib/bsp/standalone/src/cortexa53/64bit/xil_printf.c @@ -86,15 +86,15 @@ static void outs(const charptr lp, params_t *par) /* as directed by the padding and positioning flags. */ /* */ -static void outnum( const s64 n, const s32 base, params_t *par) +static void outnum( const s32 n, const s32 base, params_t *par) { charptr cp; s32 negative; s32 i; - char8 outbuf[64]; + char8 outbuf[32]; const char8 digits[] = "0123456789ABCDEF"; - u64 num; - for(i = 0; i < 64; i++) { + u32 num; + for(i = 0; i<32; i++) { outbuf[i] = '0'; } @@ -282,7 +282,7 @@ void xil_printf( const char8 *ctrl1, ...) case 'X': case 'x': par.unsigned_flag = 1; - outnum((s64)va_arg(argp, s64), 16L, &par); + outnum((s32)va_arg(argp, s32), 16L, &par); Check = 1; break;