[MTD] mtdoops printk warning fixes

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Aug 23 05:59:04 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=68d09b1b6780415d82160f6b6d88e82bd724e691
Commit:     68d09b1b6780415d82160f6b6d88e82bd724e691
Parent:     f4e35647f5c0ac24ca1ba14f84bf817ec0483b72
Author:     Andrew Morton <akpm at linux-foundation.org>
AuthorDate: Fri Aug 10 14:01:31 2007 -0700
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Aug 22 12:43:13 2007 +0100

    [MTD] mtdoops printk warning fixes
    
    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 at linux-foundation.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/mtdoops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 62ee204..f8af627 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -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);



More information about the linux-mtd-cvs mailing list