]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] mtdoops printk warning fixes
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Aug 2007 21:01:31 +0000 (14:01 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 22 Aug 2007 11:43:13 +0000 (12:43 +0100)
drivers/mtd/mtdoops.c: In function 'mtdoops_inc_counter':
drivers/mtd/mtdoops.c:109: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/mtd/mtdoops.c: In function 'mtdoops_console_sync':
drivers/mtd/mtdoops.c:277: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

someone buy Dave an x86_64 box.

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

index 62ee2043d046bab1e1d638b54197fec29e0f3318..f8af627f0b98e68d2392039c2f4f918a3db842b5 100644 (file)
@@ -104,7 +104,7 @@ static int mtdoops_inc_counter(struct mtdoops_context *cxt)
        ret = mtd->read(mtd, cxt->nextpage * OOPS_PAGE_SIZE, 4,
                        &retlen, (u_char *) &count);
        if ((retlen != 4) || (ret < 0)) {
-               printk(KERN_ERR "mtdoops: Read failure at %d (%d of 4 read)"
+               printk(KERN_ERR "mtdoops: Read failure at %d (%td of 4 read)"
                                ", err %d.\n", cxt->nextpage * OOPS_PAGE_SIZE,
                                retlen, ret);
                return 1;
@@ -273,7 +273,7 @@ static void mtdoops_console_sync(void)
        cxt->writecount = 0;
 
        if ((retlen != OOPS_PAGE_SIZE) || (ret < 0))
-               printk(KERN_ERR "mtdoops: Write failure at %d (%d of %d written), err %d.\n",
+               printk(KERN_ERR "mtdoops: Write failure at %d (%td of %d written), err %d.\n",
                        cxt->nextpage * OOPS_PAGE_SIZE, retlen, OOPS_PAGE_SIZE, ret);
 
        ret = mtdoops_inc_counter(cxt);