Use proper modifiers for size_t printing.

Eliminates build warnings.
pull/54/head
Karl Palsson 2012-02-01 21:05:06 +00:00
rodzic f38ff8f912
commit 7c4d7aa559
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1455,7 +1455,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned
fprintf(stdout, "\r");
if ((off % sl->flash_pgsz) > (sl->flash_pgsz -5)) {
fprintf(stdout, "\r%3u/%u pages written",
fprintf(stdout, "\r%3zd/%3zd pages written",
off/sl->flash_pgsz, len/sl->flash_pgsz);
fflush(stdout);
}