* [PATCH] mtdswap: fix printk format warning [not found] <20110329131133.c74af94d.sfr@canb.auug.org.au> @ 2011-03-29 19:35 ` Randy Dunlap 2011-04-01 8:30 ` Artem Bityutskiy 0 siblings, 1 reply; 2+ messages in thread From: Randy Dunlap @ 2011-03-29 19:35 UTC (permalink / raw) To: linux-mtd; +Cc: David Woodhouse From: Randy Dunlap <randy.dunlap@oracle.com> The number is actually a sizeof(), so using %zu for it builds cleanly on 32-bit or 64-bit. drivers/mtd/mtdswap.c:1456: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- drivers/mtd/mtdswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20110329.orig/drivers/mtd/mtdswap.c +++ linux-next-20110329/drivers/mtd/mtdswap.c @@ -1452,7 +1452,7 @@ static void mtdswap_add_mtd(struct mtd_b oinfo = mtd->ecclayout; if (!mtd->oobsize || !oinfo || oinfo->oobavail < MTDSWAP_OOBSIZE) { printk(KERN_ERR "%s: Not enough free bytes in OOB, " - "%d available, %lu needed.\n", + "%d available, %zu needed.\n", MTDSWAP_PREFIX, oinfo->oobavail, MTDSWAP_OOBSIZE); return; } ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mtdswap: fix printk format warning 2011-03-29 19:35 ` [PATCH] mtdswap: fix printk format warning Randy Dunlap @ 2011-04-01 8:30 ` Artem Bityutskiy 0 siblings, 0 replies; 2+ messages in thread From: Artem Bityutskiy @ 2011-04-01 8:30 UTC (permalink / raw) To: Randy Dunlap; +Cc: David Woodhouse, linux-mtd On Tue, 2011-03-29 at 12:35 -0700, Randy Dunlap wrote: > From: Randy Dunlap <randy.dunlap@oracle.com> > > The number is actually a sizeof(), so using %zu for it builds > cleanly on 32-bit or 64-bit. > > drivers/mtd/mtdswap.c:1456: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int' > > Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Pushed to l2-mtd-2.6.git tree, thanks. -- Best Regards, Artem Bityutskiy (Артём Битюцкий) ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-01 8:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20110329131133.c74af94d.sfr@canb.auug.org.au>
2011-03-29 19:35 ` [PATCH] mtdswap: fix printk format warning Randy Dunlap
2011-04-01 8:30 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox