]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [ONENAND] onenand_base warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 18 Feb 2007 00:02:05 +0000 (16:02 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 18 Feb 2007 16:38:32 +0000 (16:38 +0000)
drivers/mtd/onenand/onenand_base.c: In function 'onenand_bbt_read_oob':
drivers/mtd/onenand/onenand_base.c:1033: warning: format '%i' expects type 'int', but argument 3 has type 'size_t'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/onenand/onenand_base.c

index a2342ddc62e79c62543acba3913588db5a7afce4..7f1cb6e5dccb5b8463554cbf48e5227b66b1597d 100644 (file)
@@ -1030,7 +1030,7 @@ int onenand_bbt_read_oob(struct mtd_info *mtd, loff_t from,
        size_t len = ops->ooblen;
        u_char *buf = ops->oobbuf;
 
-       DEBUG(MTD_DEBUG_LEVEL3, "onenand_bbt_read_oob: from = 0x%08x, len = %i\n", (unsigned int) from, len);
+       DEBUG(MTD_DEBUG_LEVEL3, "onenand_bbt_read_oob: from = 0x%08x, len = %zi\n", (unsigned int) from, len);
 
        /* Initialize return value */
        ops->oobretlen = 0;