Skip to contentSkip to conversation

ROMFS: printk format warnings

PATCH In review Randy Dunlap 2 participants 2 messages Mar 19, 2007 – Mar 20, 2007 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ROMFS: printk format warnings

From: Randy Dunlap <[email protected]>

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'

---
 fs/romfs/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/romfs/super.c +1 -1
@@ -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;