Permalink
Browse files

Use proper modifiers for size_t printing.

Eliminates build warnings.
  • Loading branch information...
1 parent 900da85 commit c0139718854c05b49e0210c3b53f10862251edbd @karlp karlp committed with Feb 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/stlink-common.c
View
@@ -1483,8 +1483,8 @@ 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",
- (unsigned)(off/sl->flash_pgsz), (unsigned)(len/sl->flash_pgsz));
+ fprintf(stdout, "\r%3zd/%3zd pages written",
+ off/sl->flash_pgsz, len/sl->flash_pgsz);
fflush(stdout);
}

0 comments on commit c013971

Please sign in to comment.