linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ROMFS: printk format warnings
@ 2007-03-19 22:24 Randy Dunlap
  2007-03-20 11:13 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2007-03-19 22:24 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: dhowells, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

Field width and precision must be of type int.
fs/romfs/super.c:513: warning: field width should have type 'int', but argument 2 has type 'size_t'
fs/romfs/super.c:513: warning: field precision should have type 'int', but argument 3 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 fs/romfs/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.21-rc3-mm2.orig/fs/romfs/super.c
+++ linux-2.6.21-rc3-mm2/fs/romfs/super.c
@@ -510,7 +510,7 @@ static int romfs_fill_super(struct super
 	len = strnlen(rsb->name, ROMFS_MAXFN);
 	if (!silent)
 		printk("ROMFS: Mounting image '%*.*s' through %s\n",
-		       len, len, rsb->name, storage);
+		       (int)len, (int)len, rsb->name, storage);
 
 	kfree(rsb);
 	rsb = NULL;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-20 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 22:24 [PATCH] ROMFS: printk format warnings Randy Dunlap
2007-03-20 11:13 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).