projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5166c
)
Blackfin: uart: fix printf warning
author
Mike Frysinger
<vapier@gentoo.org>
Mon, 9 May 2011 18:56:38 +0000
(14:56 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 12 Jul 2011 06:17:45 +0000
(
02:17
-0400)
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>
arch/blackfin/cpu/serial.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/cpu/serial.c
b/arch/blackfin/cpu/serial.c
index
0252220
..
1124ffd
100644
(file)
--- 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%3
i
: RBR=0x%02x LSR=0x%02x\n", cache_count,
+ printf("\t%3
zu
: RBR=0x%02x LSR=0x%02x\n", cache_count,
cached_rbr[cache_count], cached_lsr[cache_count]);
} while (cache_count > 0);
return -1;