Skip to content

Commit

Permalink
Cast fprintf() arguments to unsigned according to format specifiers.
Browse files Browse the repository at this point in the history
  • Loading branch information
burjui committed Mar 1, 2012
1 parent b57ca80 commit 0f44587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-common.c
Expand Up @@ -1484,7 +1484,7 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, unsigned


if ((off % sl->flash_pgsz) > (sl->flash_pgsz -5)) { if ((off % sl->flash_pgsz) > (sl->flash_pgsz -5)) {
fprintf(stdout, "\r%3u/%u pages written", fprintf(stdout, "\r%3u/%u pages written",
off/sl->flash_pgsz, len/sl->flash_pgsz); (unsigned)(off/sl->flash_pgsz), (unsigned)(len/sl->flash_pgsz));
fflush(stdout); fflush(stdout);
} }


Expand Down

0 comments on commit 0f44587

Please sign in to comment.