Author: blogic Date: 2014-11-26 09:59:17 +0100 (Wed, 26 Nov 2014) New Revision: 43383
Modified: trunk/package/system/mtd/src/mtd.c Log: mtd: fix 2 compiler warnings mtd.c:544:7: warning: format ?\226?\128?\152%x?\226?\128?\153 expects argument of type ?\226?\128?\152unsigned int?\226?\128?\153, but argument 3 has type ?\226?\128?\152ssize_t?\226?\128?\153 [-Wformat] mtd.c:602:1: warning: label ?\226?\128?\152done?\226?\128?\153 defined but not used [-Wunused-label] Signed-off-by: John Crispin <[email protected]> Modified: trunk/package/system/mtd/src/mtd.c =================================================================== --- trunk/package/system/mtd/src/mtd.c 2014-11-26 08:28:22 UTC (rev 43382) +++ trunk/package/system/mtd/src/mtd.c 2014-11-26 08:59:17 UTC (rev 43383) @@ -505,7 +505,7 @@ 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 @@ if (!quiet) fprintf(stderr, "\b\b\b\b "); -done: if (quiet < 2) fprintf(stderr, "\n"); _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
