Skip to content
Snippets Groups Projects
Commit f9aee4b4 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

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: default avatarMike Frysinger <vapier@gentoo.org>
parent fb5166ce
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment