From 9a70c8ef9b4978f169adb40231987ec44af3e77d Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 26 Nov 2014 08:59:17 +0000 Subject: [PATCH] mtd: fix 2 compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 SVN-Revision: 43383 --- package/system/mtd/src/mtd.c | 3 +-- 1 file changed, 1 insertion(+), 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");