mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
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>
This commit is contained in:
parent
fb5166ce35
commit
f9aee4b4b6
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ static int uart_getc(uint32_t uart_base)
|
||||||
printf("\tDLL=0x%x DLH=0x%x\n", dll, dlh);
|
printf("\tDLL=0x%x DLH=0x%x\n", dll, dlh);
|
||||||
do {
|
do {
|
||||||
--cache_count;
|
--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]);
|
cached_rbr[cache_count], cached_lsr[cache_count]);
|
||||||
} while (cache_count > 0);
|
} while (cache_count > 0);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue