summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-09 14:56:38 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-12 02:17:45 -0400
commitf9aee4b4b65583149ed098c6908942d264db521b (patch)
treeefc0d61758e0a949bab709f1323764fc196e8cb7 /arch
parentfb5166ce35de489c8a96f3696e208eaae6a5a8d8 (diff)
downloadu-boot-imx-f9aee4b4b65583149ed098c6908942d264db521b.zip
u-boot-imx-f9aee4b4b65583149ed098c6908942d264db521b.tar.gz
u-boot-imx-f9aee4b4b65583149ed098c6908942d264db521b.tar.bz2
Blackfin: uart: fix printf warning
The code uses %i to printf a size_t when it should use %zu, otherwise we get a warning from gcc about it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/cpu/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/cpu/serial.c b/arch/blackfin/cpu/serial.c
index 0252220..1124ffd 100644
--- a/arch/blackfin/cpu/serial.c
+++ b/arch/blackfin/cpu/serial.c
@@ -142,7 +142,7 @@ static int uart_getc(uint32_t uart_base)
printf("\tDLL=0x%x DLH=0x%x\n", dll, dlh);
do {
--cache_count;
- printf("\t%3i: RBR=0x%02x LSR=0x%02x\n", cache_count,
+ printf("\t%3zu: RBR=0x%02x LSR=0x%02x\n", cache_count,
cached_rbr[cache_count], cached_lsr[cache_count]);
} while (cache_count > 0);
return -1;