aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-26 08:59:17 +0000
committerJohn Crispin <john@openwrt.org>2014-11-26 08:59:17 +0000
commit9a70c8ef9b4978f169adb40231987ec44af3e77d (patch)
treefa857285fbae076391b5a34e0563ac32953b382d /package
parent15f6f67d18bea6174d026d6af944f4553bcc3c98 (diff)
downloadupstream-9a70c8ef9b4978f169adb40231987ec44af3e77d.tar.gz
upstream-9a70c8ef9b4978f169adb40231987ec44af3e77d.tar.bz2
upstream-9a70c8ef9b4978f169adb40231987ec44af3e77d.zip
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
Diffstat (limited to 'package')
-rw-r--r--package/system/mtd/src/mtd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c
index 6dd6eea6a3..ae0d032168 100644
--- a/package/system/mtd/src/mtd.c
+++ b/package/system/mtd/src/mtd.c
@@ -505,7 +505,7 @@ resume:
if (mtd_block_is_bad(fd, e)) {
if (!quiet)
- fprintf(stderr, "\nSkipping bad block at 0x%08x ", e);
+ fprintf(stderr, "\nSkipping bad block at 0x%08zx ", e);
skip_bad_blocks += erasesize;
e += erasesize;
@@ -563,7 +563,6 @@ resume:
if (!quiet)
fprintf(stderr, "\b\b\b\b ");
-done:
if (quiet < 2)
fprintf(stderr, "\n");