diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-09 18:56:38 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-07-12 06:17:45 (GMT) |
commit | f9aee4b4b65583149ed098c6908942d264db521b (patch) | |
tree | efc0d61758e0a949bab709f1323764fc196e8cb7 /arch | |
parent | fb5166ce35de489c8a96f3696e208eaae6a5a8d8 (diff) | |
download | u-boot-fsl-qoriq-f9aee4b4b65583149ed098c6908942d264db521b.tar.xz |
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.c | 2 |
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; |