mtd: fix 2 compiler warnings
mtd.c:544:7: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘ssize_t’ [-Wformat] mtd.c:602:1: warning: label ‘done’ defined but not used [-Wunused-label] Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43383
This commit is contained in:
parent
15f6f67d18
commit
9a70c8ef9b
1 changed files with 1 additions and 2 deletions
|
@ -505,7 +505,7 @@ resume:
|
||||||
|
|
||||||
if (mtd_block_is_bad(fd, e)) {
|
if (mtd_block_is_bad(fd, e)) {
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
fprintf(stderr, "\nSkipping bad block at 0x%08x ", e);
|
fprintf(stderr, "\nSkipping bad block at 0x%08zx ", e);
|
||||||
|
|
||||||
skip_bad_blocks += erasesize;
|
skip_bad_blocks += erasesize;
|
||||||
e += erasesize;
|
e += erasesize;
|
||||||
|
@ -563,7 +563,6 @@ resume:
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
fprintf(stderr, "\b\b\b\b ");
|
fprintf(stderr, "\b\b\b\b ");
|
||||||
|
|
||||||
done:
|
|
||||||
if (quiet < 2)
|
if (quiet < 2)
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue