From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-fsdevel@vger.kernel.org
Cc: dhowells@redhat.com, akpm <akpm@linux-foundation.org>
Subject: [PATCH] ROMFS: printk format warnings
Date: Mon, 19 Mar 2007 15:24:34 -0700 [thread overview]
Message-ID: <20070319152434.b7cbeb56.randy.dunlap@oracle.com> (raw)
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;
next reply other threads:[~2007-03-19 22:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-19 22:24 Randy Dunlap [this message]
2007-03-20 11:13 ` [PATCH] ROMFS: printk format warnings David Howells
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070319152434.b7cbeb56.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).